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 => ::P0_a_e_a_b_r7},
  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



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

def struct_fields; FIELDS; end

#validateObject



13783
13784
13785
13786
13787
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13783

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