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.
3658 3659 3660 3661 3662 |
# File 'lib/v20220817/models.rb', line 3658 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
3656 3657 3658 |
# File 'lib/v20220817/models.rb', line 3656 def ImageFormat @ImageFormat end |
#ImageInfoList ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255
3656 3657 3658 |
# File 'lib/v20220817/models.rb', line 3656 def ImageInfoList @ImageInfoList end |
#UUID ⇒ Object
JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255
3656 3657 3658 |
# File 'lib/v20220817/models.rb', line 3656 def UUID @UUID end |
Instance Method Details
#deserialize(params) ⇒ Object
3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 |
# File 'lib/v20220817/models.rb', line 3664 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 |