Class: TalkService::RemoveFriendRequest_args
- Inherits:
-
Object
- Object
- TalkService::RemoveFriendRequest_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/talk_service.rb
Constant Summary collapse
- DIRECTION =
1
- MIDOREMID =
2
- FIELDS =
{ DIRECTION => {:type => ::Thrift::Types::I32, :name => 'direction', :enum_class => ::J0_a_e_a_b_wa}, MIDOREMID => {:type => ::Thrift::Types::STRING, :name => 'midOrEMid'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2608 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 2608 def struct_fields; FIELDS; end |
#validate ⇒ Object
2610 2611 2612 2613 2614 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 2610 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 |