Class: MsgChannelEncryptResponse

Inherits:
Object
  • Object
show all
Includes:
SteamSerializable
Defined in:
lib/steamd/generated/steammsg.rb

Overview

Class for the MsgChannelEncryptResponse in the Steam Language.

Instance Attribute Summary

Attributes included from SteamSerializable

#constants, #variables

Instance Method Summary collapse

Methods included from SteamSerializable

#consts, #deserialize, #encode_to, #flag, #serialize, #vars

Constructor Details

#initializeMsgChannelEncryptResponse

Instantiate a MsgChannelEncryptResponse object



92
93
94
95
96
# File 'lib/steamd/generated/steammsg.rb', line 92

def initialize
  super([{:name=>"protocol_version", :type=>"uint", :modifier=>nil, :value=>"MsgChannelEncryptRequest::PROTOCOL_VERSION", :size=>nil, :modifier_size=>nil}, {:name=>"key_size", :type=>"uint", :modifier=>nil, :value=>128, :size=>nil, :modifier_size=>nil}], [])
  self.protocol_version = MsgChannelEncryptRequest::PROTOCOL_VERSION
  self.key_size = 128
end

Instance Method Details

#key_sizeuint

Note:

defaults to 128

Gets the key_size variable.

Returns:

  • (uint)

    the value of key_size



117
118
119
# File 'lib/steamd/generated/steammsg.rb', line 117

def key_size
  @variables['key_size'][:value]
end

#key_size=(value) ⇒ Object

Sets the key_size variable.

Parameters:

  • value (uint)

    the new value



124
125
126
# File 'lib/steamd/generated/steammsg.rb', line 124

def key_size=(value)
  @variables['key_size'][:value] = value
end

#protocol_versionuint

Note:

defaults to MsgChannelEncryptRequest::PROTOCOL_VERSION

Gets the protocol_version variable.

Returns:

  • (uint)

    the value of protocol_version



102
103
104
# File 'lib/steamd/generated/steammsg.rb', line 102

def protocol_version
  @variables['protocol_version'][:value]
end

#protocol_version=(value) ⇒ Object

Sets the protocol_version variable.

Parameters:

  • value (uint)

    the new value



109
110
111
# File 'lib/steamd/generated/steammsg.rb', line 109

def protocol_version=(value)
  @variables['protocol_version'][:value] = value
end