Class: BuddySearchResult
- Inherits:
-
Object
- Object
- BuddySearchResult
- 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
- MID =
1
- DISPLAYNAME =
2
- PICTURESTATUS =
3
- PICTUREPATH =
4
- STATUSMESSAGE =
5
- BUSINESSACCOUNT =
6
- ICONTYPE =
7
- BOTTYPE =
8
- FIELDS =
{ MID => {:type => ::Thrift::Types::STRING, :name => 'mid'}, DISPLAYNAME => {:type => ::Thrift::Types::STRING, :name => 'displayName'}, PICTURESTATUS => {:type => ::Thrift::Types::STRING, :name => 'pictureStatus'}, PICTUREPATH => {:type => ::Thrift::Types::STRING, :name => 'picturePath'}, STATUSMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'statusMessage'}, BUSINESSACCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'businessAccount'}, ICONTYPE => {:type => ::Thrift::Types::I32, :name => 'iconType'}, BOTTYPE => {:type => ::Thrift::Types::I32, :name => 'botType', :enum_class => ::P0_a_e_a_b_u1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
9418 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9418 def struct_fields; FIELDS; end |
#validate ⇒ Object
9420 9421 9422 9423 9424 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9420 def validate unless @botType.nil? || ::P0_a_e_a_b_u1::VALID_VALUES.include?(@botType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field botType!') end end |