Class: TencentCloud::Lcic::V20220817::ImageMsgContent
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lcic::V20220817::ImageMsgContent
- Defined in:
- lib/v20220817/models.rb
Overview
图片消息
Instance Attribute Summary collapse
-
#ImageFormat ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255.
-
#ImageInfoList ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255.
-
#UUID ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(uuid = nil, imageformat = nil, imageinfolist = nil) ⇒ ImageMsgContent
constructor
A new instance of ImageMsgContent.
Constructor Details
#initialize(uuid = nil, imageformat = nil, imageinfolist = nil) ⇒ ImageMsgContent
Returns a new instance of ImageMsgContent.
3722 3723 3724 3725 3726 |
# File 'lib/v20220817/models.rb', line 3722 def initialize(uuid=nil, imageformat=nil, imageinfolist=nil) @UUID = uuid @ImageFormat = imageformat @ImageInfoList = imageinfolist end |
Instance Attribute Details
#ImageFormat ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255
3720 3721 3722 |
# File 'lib/v20220817/models.rb', line 3720 def ImageFormat @ImageFormat end |
#ImageInfoList ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255
3720 3721 3722 |
# File 'lib/v20220817/models.rb', line 3720 def ImageInfoList @ImageInfoList end |
#UUID ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255
3720 3721 3722 |
# File 'lib/v20220817/models.rb', line 3720 def UUID @UUID end |
Instance Method Details
#deserialize(params) ⇒ Object
3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 |
# File 'lib/v20220817/models.rb', line 3728 def deserialize(params) @UUID = params['UUID'] @ImageFormat = params['ImageFormat'] unless params['ImageInfoList'].nil? @ImageInfoList = [] params['ImageInfoList'].each do |i| imageinfo_tmp = ImageInfo.new imageinfo_tmp.deserialize(i) @ImageInfoList << imageinfo_tmp end end end |