Class: GroupCall
- Inherits:
-
Object
- Object
- GroupCall
- 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
- ONLINE =
1
- CHATMID =
2
- HOSTMID =
3
- MEMBERMIDS =
4
- STARTED =
5
- MEDIATYPE =
6
- PROTOCOL =
7
- FIELDS =
{ ONLINE => {:type => ::Thrift::Types::BOOL, :name => 'online'}, CHATMID => {:type => ::Thrift::Types::STRING, :name => 'chatMid'}, HOSTMID => {:type => ::Thrift::Types::STRING, :name => 'hostMid'}, MEMBERMIDS => {:type => ::Thrift::Types::LIST, :name => 'memberMids', :element => {:type => ::Thrift::Types::STRING}}, STARTED => {:type => ::Thrift::Types::I64, :name => 'started'}, MEDIATYPE => {:type => ::Thrift::Types::I32, :name => 'mediaType', :enum_class => ::J0_a_e_a_b_gc}, PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'protocol', :enum_class => ::J0_a_e_a_b_hc} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14199 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14199 def struct_fields; FIELDS; end |
#validate ⇒ Object
14201 14202 14203 14204 14205 14206 14207 14208 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14201 def validate unless @mediaType.nil? || ::J0_a_e_a_b_gc::VALID_VALUES.include?(@mediaType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field mediaType!') end unless @protocol.nil? || ::J0_a_e_a_b_hc::VALID_VALUES.include?(@protocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol!') end end |