Class: TencentCloud::Lcic::V20220817::ImageMsgContent

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220817/models.rb

Overview

图片消息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ImageFormatObject

JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255

Parameters:

  • UUID:

    图片的唯一标识,客户端用于索引图片的键值。

  • ImageFormat:

    图片格式。

  • ImageInfoList:

    图片信息



3656
3657
3658
# File 'lib/v20220817/models.rb', line 3656

def ImageFormat
  @ImageFormat
end

#ImageInfoListObject

JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255

Parameters:

  • UUID:

    图片的唯一标识,客户端用于索引图片的键值。

  • ImageFormat:

    图片格式。

  • ImageInfoList:

    图片信息



3656
3657
3658
# File 'lib/v20220817/models.rb', line 3656

def ImageInfoList
  @ImageInfoList
end

#UUIDObject

JPG = 1 GIF = 2 PNG = 3 BMP = 4 其他 = 255

Parameters:

  • UUID:

    图片的唯一标识,客户端用于索引图片的键值。

  • ImageFormat:

    图片格式。

  • ImageInfoList:

    图片信息



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