Class: TencentCloud::Iotvideoindustry::V20201201::DescribeChannelsByLiveRecordPlanResponse

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

Overview

DescribeChannelsByLiveRecordPlan返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, livechannels = nil, requestid = nil) ⇒ DescribeChannelsByLiveRecordPlanResponse

Returns a new instance of DescribeChannelsByLiveRecordPlanResponse.



1889
1890
1891
1892
1893
# File 'lib/v20201201/models.rb', line 1889

def initialize(totalcount=nil, livechannels=nil, requestid=nil)
  @TotalCount = totalcount
  @LiveChannels = livechannels
  @RequestId = requestid
end

Instance Attribute Details

#LiveChannelsObject

Parameters:

  • TotalCount:

    总个数

  • LiveChannels:

    通道详情数组

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1887
1888
1889
# File 'lib/v20201201/models.rb', line 1887

def LiveChannels
  @LiveChannels
end

#RequestIdObject

Parameters:

  • TotalCount:

    总个数

  • LiveChannels:

    通道详情数组

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1887
1888
1889
# File 'lib/v20201201/models.rb', line 1887

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    总个数

  • LiveChannels:

    通道详情数组

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1887
1888
1889
# File 'lib/v20201201/models.rb', line 1887

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
# File 'lib/v20201201/models.rb', line 1895

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['LiveChannels'].nil?
    @LiveChannels = []
    params['LiveChannels'].each do |i|
      livechannelitem_tmp = LiveChannelItem.new
      livechannelitem_tmp.deserialize(i)
      @LiveChannels << livechannelitem_tmp
    end
  end
  @RequestId = params['RequestId']
end