Class: TalkService::GetFriendRequests_args
- Inherits:
-
Object
- Object
- TalkService::GetFriendRequests_args
- 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 => ::P0_a_e_a_b_xa}, LASTSEENSEQID => {:type => ::Thrift::Types::I64, :name => 'lastSeenSeqId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2586 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 2586 def struct_fields; FIELDS; end |
#validate ⇒ Object
2588 2589 2590 2591 2592 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 2588 def validate unless @direction.nil? || ::P0_a_e_a_b_xa::VALID_VALUES.include?(@direction) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field direction!') end end |