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 => ::P0_a_a_b_a_a_a3}, 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 => ::P0_a_a_b_a_a_b3}, 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
9150 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9150 def struct_fields; FIELDS; end |
#validate ⇒ Object
9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9152 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 @stickerSize.nil? || ::P0_a_a_b_a_a_b3::VALID_VALUES.include?(@stickerSize) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field stickerSize!') 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 |