Class: TencentCloud::Rce::V20201103::AccountInfo

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

Overview

账号信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(accounttype = nil, qqaccount = nil, wechataccount = nil, otheraccount = nil) ⇒ AccountInfo



37
38
39
40
41
42
# File 'lib/v20201103/models.rb', line 37

def initialize(accounttype=nil, qqaccount=nil, wechataccount=nil, otheraccount=nil)
  @AccountType = accounttype
  @QQAccount = qqaccount
  @WeChatAccount = wechataccount
  @OtherAccount = otheraccount
end

Instance Attribute Details

#AccountTypeObject

1:QQ开放账号2:微信开放账号10004:手机号MD5,中国大陆11位手机号进行MD5加密,取32位小写值10005:手机号SHA256,中国大陆11位手机号进行SHA256加密,取64位小写值



35
36
37
# File 'lib/v20201103/models.rb', line 35

def AccountType
  @AccountType
end

#OtherAccountObject

1:QQ开放账号2:微信开放账号10004:手机号MD5,中国大陆11位手机号进行MD5加密,取32位小写值10005:手机号SHA256,中国大陆11位手机号进行SHA256加密,取64位小写值



35
36
37
# File 'lib/v20201103/models.rb', line 35

def OtherAccount
  @OtherAccount
end

#QQAccountObject

1:QQ开放账号2:微信开放账号10004:手机号MD5,中国大陆11位手机号进行MD5加密,取32位小写值10005:手机号SHA256,中国大陆11位手机号进行SHA256加密,取64位小写值



35
36
37
# File 'lib/v20201103/models.rb', line 35

def QQAccount
  @QQAccount
end

#WeChatAccountObject

1:QQ开放账号2:微信开放账号10004:手机号MD5,中国大陆11位手机号进行MD5加密,取32位小写值10005:手机号SHA256,中国大陆11位手机号进行SHA256加密,取64位小写值



35
36
37
# File 'lib/v20201103/models.rb', line 35

def WeChatAccount
  @WeChatAccount
end

Instance Method Details

#deserialize(params) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/v20201103/models.rb', line 44

def deserialize(params)
  @AccountType = params['AccountType']
  unless params['QQAccount'].nil?
    @QQAccount = QQAccountInfo.new
    @QQAccount.deserialize(params['QQAccount'])
  end
  unless params['WeChatAccount'].nil?
    @WeChatAccount = WeChatAccountInfo.new
    @WeChatAccount.deserialize(params['WeChatAccount'])
  end
  unless params['OtherAccount'].nil?
    @OtherAccount = OtherAccountInfo.new
    @OtherAccount.deserialize(params['OtherAccount'])
  end
end