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 => ::J0_a_e_a_b_zc}, 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
13322 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13322 def struct_fields; FIELDS; end |
#validate ⇒ Object
13324 13325 13326 13327 13328 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13324 def validate unless @midType.nil? || ::J0_a_e_a_b_zc::VALID_VALUES.include?(@midType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field midType!') end end |