Class: StickerProperty
- Inherits:
-
Object
- Object
- StickerProperty
- 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
- HASANIMATION =
1
- HASSOUND =
2
- HASPOPUP =
3
- STICKERRESOURCETYPE =
4
- STICKEROPTIONS =
5
- COMPACTSTICKEROPTIONS =
6
- STICKERHASH =
7
- STICKERIDS =
9
- NAMETEXTPROPERTY =
10
- AVAILABLEFORPHOTOEDIT =
11
- STICKERDEFAULTTEXTS =
12
- STICKERSIZE =
13
- POPUPLAYER =
14
- FIELDS =
{ HASANIMATION => {:type => ::Thrift::Types::BOOL, :name => 'hasAnimation'}, HASSOUND => {:type => ::Thrift::Types::BOOL, :name => 'hasSound'}, HASPOPUP => {:type => ::Thrift::Types::BOOL, :name => 'hasPopup'}, STICKERRESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'stickerResourceType', :enum_class => ::J0_a_a_b_a_a_g3}, STICKEROPTIONS => {:type => ::Thrift::Types::STRING, :name => 'stickerOptions'}, COMPACTSTICKEROPTIONS => {:type => ::Thrift::Types::I32, :name => 'compactStickerOptions'}, STICKERHASH => {:type => ::Thrift::Types::STRING, :name => 'stickerHash'}, STICKERIDS => {:type => ::Thrift::Types::LIST, :name => 'stickerIds', :element => {:type => ::Thrift::Types::STRING}}, NAMETEXTPROPERTY => {:type => ::Thrift::Types::STRUCT, :name => 'nameTextProperty', :class => ::ImageTextProperty}, AVAILABLEFORPHOTOEDIT => {:type => ::Thrift::Types::BOOL, :name => 'availableForPhotoEdit'}, STICKERDEFAULTTEXTS => {:type => ::Thrift::Types::MAP, :name => 'stickerDefaultTexts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, STICKERSIZE => {:type => ::Thrift::Types::I32, :name => 'stickerSize', :enum_class => ::J0_a_a_b_a_a_h3}, POPUPLAYER => {:type => ::Thrift::Types::I32, :name => 'popupLayer', :enum_class => ::J0_a_a_b_a_a_m1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7586 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7586 def struct_fields; FIELDS; end |
#validate ⇒ Object
7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7588 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 @stickerSize.nil? || ::J0_a_a_b_a_a_h3::VALID_VALUES.include?(@stickerSize) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field stickerSize!') 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 |