Class: StickerSummary
- Inherits:
-
Object
- Object
- StickerSummary
- 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 => ::P0_a_a_b_a_a_a3}, 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 => ::P0_a_a_b_a_a_g1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
10806 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10806 def struct_fields; FIELDS; end |
#validate ⇒ Object
10808 10809 10810 10811 10812 10813 10814 10815 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10808 def validate unless @stickerResourceType.nil? || ::P0_a_a_b_a_a_a3::VALID_VALUES.include?(@stickerResourceType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field stickerResourceType!') end unless @popupLayer.nil? || ::P0_a_a_b_a_a_g1::VALID_VALUES.include?(@popupLayer) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field popupLayer!') end end |