Class: FriendRequest
- Inherits:
-
Object
- Object
- FriendRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- EMID =
1
- MID =
2
- DIRECTION =
3
- METHOD =
4
- PARAM =
5
- TIMESTAMP =
6
- SEQID =
7
- DISPLAYNAME =
10
- PICTUREPATH =
11
- PICTURESTATUS =
12
- FIELDS =
{ EMID => {:type => ::Thrift::Types::STRING, :name => 'eMid'}, MID => {:type => ::Thrift::Types::STRING, :name => 'mid'}, DIRECTION => {:type => ::Thrift::Types::I32, :name => 'direction', :enum_class => ::P0_a_e_a_b_xa}, METHOD => {:type => ::Thrift::Types::I32, :name => 'method', :enum_class => ::P0_a_e_a_b_ya}, PARAM => {:type => ::Thrift::Types::STRING, :name => 'param'}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}, SEQID => {:type => ::Thrift::Types::I64, :name => 'seqId'}, DISPLAYNAME => {:type => ::Thrift::Types::STRING, :name => 'displayName'}, PICTUREPATH => {:type => ::Thrift::Types::STRING, :name => 'picturePath'}, PICTURESTATUS => {:type => ::Thrift::Types::STRING, :name => 'pictureStatus'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16690 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16690 def struct_fields; FIELDS; end |
#validate ⇒ Object
16692 16693 16694 16695 16696 16697 16698 16699 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16692 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 unless @method.nil? || ::P0_a_e_a_b_ya::VALID_VALUES.include?(@method) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field method!') end end |