Class: TalkService::GetRecentFriendRequests_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/talk_service.rb

Overview

HELPER FUNCTIONS AND STRUCTURES

Constant Summary collapse

SYNCREASON =
1
FIELDS =
{
  SYNCREASON => {:type => ::Thrift::Types::I32, :name => 'syncReason', :enum_class => ::J0_a_e_a_b_rg}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



2530
# File 'lib/linerb/gen-rb/talk_service.rb', line 2530

def struct_fields; FIELDS; end

#validateObject



2532
2533
2534
2535
2536
# File 'lib/linerb/gen-rb/talk_service.rb', line 2532

def validate
  unless @syncReason.nil? || ::J0_a_e_a_b_rg::VALID_VALUES.include?(@syncReason)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field syncReason!')
  end
end