Class: TalkService::GetFriendRequests_args

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

Constant Summary collapse

DIRECTION =
1
LASTSEENSEQID =
2
FIELDS =
{
  DIRECTION => {:type => ::Thrift::Types::I32, :name => 'direction', :enum_class => ::J0_a_e_a_b_wa},
  LASTSEENSEQID => {:type => ::Thrift::Types::I64, :name => 'lastSeenSeqId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2571
2572
2573
2574
2575
# File 'lib/linerb/gen-rb/talk_service.rb', line 2571

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