Class: StickerSummary

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

STICKERIDRANGES =
1
SUGGESTVERSION =
2
STICKERHASH =
3
DEFAULTDISPLAYONKEYBOARD =
4
STICKERRESOURCETYPE =
5
NAMETEXTPROPERTY =
6
AVAILABLEFORPHOTOEDIT =
7
POPUPLAYER =
8
FIELDS =
{
  STICKERIDRANGES => {:type => ::Thrift::Types::LIST, :name => 'stickerIdRanges', :element => {:type => ::Thrift::Types::STRUCT, :class => ::StickerIdRange}},
  SUGGESTVERSION => {:type => ::Thrift::Types::I64, :name => 'suggestVersion'},
  STICKERHASH => {:type => ::Thrift::Types::STRING, :name => 'stickerHash'},
  DEFAULTDISPLAYONKEYBOARD => {:type => ::Thrift::Types::BOOL, :name => 'defaultDisplayOnKeyboard'},
  STICKERRESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'stickerResourceType', :enum_class => ::J0_a_a_b_a_a_g3},
  NAMETEXTPROPERTY => {:type => ::Thrift::Types::STRUCT, :name => 'nameTextProperty', :class => ::ImageTextProperty},
  AVAILABLEFORPHOTOEDIT => {:type => ::Thrift::Types::BOOL, :name => 'availableForPhotoEdit'},
  POPUPLAYER => {:type => ::Thrift::Types::I32, :name => 'popupLayer', :enum_class => ::J0_a_a_b_a_a_m1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



9339
9340
9341
9342
9343
9344
9345
9346
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9339

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