Class: ExtendedMessageBox
- Inherits:
-
Object
- Object
- ExtendedMessageBox
- 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
- ID =
1
- MIDTYPE =
2
- LASTDELIVEREDMESSAGEID =
4
- LASTSEENMESSAGEID =
5
- UNREADCOUNT =
6
- LASTMESSAGES =
7
- LASTREMOVEDMESSAGEID =
8
- LASTREMOVEDTIME =
9
- HIDDENATMESSAGEID =
10
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, MIDTYPE => {:type => ::Thrift::Types::I32, :name => 'midType', :enum_class => ::P0_a_e_a_b_ad}, LASTDELIVEREDMESSAGEID => {:type => ::Thrift::Types::STRUCT, :name => 'lastDeliveredMessageId', :class => ::MessageBoxV2MessageId}, LASTSEENMESSAGEID => {:type => ::Thrift::Types::I64, :name => 'lastSeenMessageId', :optional => true}, UNREADCOUNT => {:type => ::Thrift::Types::I64, :name => 'unreadCount', :optional => true}, LASTMESSAGES => {:type => ::Thrift::Types::LIST, :name => 'lastMessages', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Message}, :optional => true}, LASTREMOVEDMESSAGEID => {:type => ::Thrift::Types::I64, :name => 'lastRemovedMessageId', :optional => true}, LASTREMOVEDTIME => {:type => ::Thrift::Types::I64, :name => 'lastRemovedTime', :optional => true}, HIDDENATMESSAGEID => {:type => ::Thrift::Types::I64, :name => 'hiddenAtMessageId', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14576 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14576 def struct_fields; FIELDS; end |
#validate ⇒ Object
14578 14579 14580 14581 14582 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14578 def validate unless @midType.nil? || ::P0_a_e_a_b_ad::VALID_VALUES.include?(@midType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field midType!') end end |