Class: TencentCloud::Zj::V20190121::SendSmsResponse

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

Overview

SendSms返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ SendSmsResponse

Returns a new instance of SendSmsResponse.



1638
1639
1640
1641
# File 'lib/v20190121/models.rb', line 1638

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    出参数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1636
1637
1638
# File 'lib/v20190121/models.rb', line 1636

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    出参数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1636
1637
1638
# File 'lib/v20190121/models.rb', line 1636

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
# File 'lib/v20190121/models.rb', line 1643

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      sendsmspaasdatastruct_tmp = SendSmsPaasDataStruct.new
      sendsmspaasdatastruct_tmp.deserialize(i)
      @Data << sendsmspaasdatastruct_tmp
    end
  end
  @RequestId = params['RequestId']
end