Class: MsgClientGetFriendsWhoPlayGameResponse

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

Overview

Class for the MsgClientGetFriendsWhoPlayGameResponse 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

#initializeMsgClientGetFriendsWhoPlayGameResponse

Instantiate a MsgClientGetFriendsWhoPlayGameResponse object



900
901
902
# File 'lib/steamd/generated/steammsg.rb', line 900

def initialize
  super([{:name=>"result", :type=>"EResult", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"game_id", :type=>"ulong", :modifier=>"gameidmarshal", :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"count_friends", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [])
end

Instance Method Details

#count_friendsuint

Note:

defaults to

Gets the count_friends variable.

Returns:

  • (uint)

    the value of count_friends



938
939
940
# File 'lib/steamd/generated/steammsg.rb', line 938

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

#count_friends=(value) ⇒ Object

Sets the count_friends variable.

Parameters:

  • value (uint)

    the new value



945
946
947
# File 'lib/steamd/generated/steammsg.rb', line 945

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

#game_idulong

Note:

defaults to

Gets the game_id variable.

Returns:

  • (ulong)

    the value of game_id



923
924
925
# File 'lib/steamd/generated/steammsg.rb', line 923

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

#game_id=(value) ⇒ Object

Sets the game_id variable.

Parameters:

  • value (ulong)

    the new value



930
931
932
# File 'lib/steamd/generated/steammsg.rb', line 930

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

#resultEResult

Note:

defaults to

Gets the result variable.

Returns:

  • (EResult)

    the value of result



908
909
910
# File 'lib/steamd/generated/steammsg.rb', line 908

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

#result=(value) ⇒ Object

Sets the result variable.

Parameters:

  • value (EResult)

    the new value



915
916
917
# File 'lib/steamd/generated/steammsg.rb', line 915

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