Class: ChatEffectMeta

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

CONTENTID =
1
CATEGORY =
2
NAME =
3
DEFAULTCONTENT =
4
OPTIONALCONTENTS =
5
KEYWORDS =
6
BEGINTIMEMILLIS =
7
ENDTIMEMILLIS =
8
CREATEDTIMEMILLIS =
9
UPDATEDTIMEMILLIS =
10
FIELDS =
{
  CONTENTID => {:type => ::Thrift::Types::I64, :name => 'contentId'},
  CATEGORY => {:type => ::Thrift::Types::I32, :name => 'category', :enum_class => ::P0_a_e_a_b_i7},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  DEFAULTCONTENT => {:type => ::Thrift::Types::STRUCT, :name => 'defaultContent', :class => ::ChatEffectMetaContent},
  OPTIONALCONTENTS => {:type => ::Thrift::Types::MAP, :name => 'optionalContents', :key => {:type => ::Thrift::Types::I32, :enum_class => ::P0_a_e_a_b_k7}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::ChatEffectMetaContent}},
  KEYWORDS => {:type => ::Thrift::Types::SET, :name => 'keywords', :element => {:type => ::Thrift::Types::STRING}},
  BEGINTIMEMILLIS => {:type => ::Thrift::Types::I64, :name => 'beginTimeMillis'},
  ENDTIMEMILLIS => {:type => ::Thrift::Types::I64, :name => 'endTimeMillis'},
  CREATEDTIMEMILLIS => {:type => ::Thrift::Types::I64, :name => 'createdTimeMillis'},
  UPDATEDTIMEMILLIS => {:type => ::Thrift::Types::I64, :name => 'updatedTimeMillis'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



14721
14722
14723
14724
14725
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14721

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