Class: GroupCall

Inherits:
Object
  • Object
show all
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 => ::P0_a_e_a_b_hc},
  PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'protocol', :enum_class => ::P0_a_e_a_b_ic}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



15258
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15258

def struct_fields; FIELDS; end

#validateObject



15260
15261
15262
15263
15264
15265
15266
15267
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15260

def validate
  unless @mediaType.nil? || ::P0_a_e_a_b_hc::VALID_VALUES.include?(@mediaType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field mediaType!')
  end
  unless @protocol.nil? || ::P0_a_e_a_b_ic::VALID_VALUES.include?(@protocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol!')
  end
end