Class: CreateChatRequest

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

REQSEQ =
1
TYPE =
2
NAME =
3
TARGETUSERMIDS =
4
PICTUREPATH =
5
FIELDS =
{
  REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::J0_a_e_a_b_q7},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
  TARGETUSERMIDS => {:type => ::Thrift::Types::SET, :name => 'targetUserMids', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
  PICTUREPATH => {:type => ::Thrift::Types::STRING, :name => 'picturePath', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



12620
12621
12622
12623
12624
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12620

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