Class: TencentCloud::Vod::V20180717::HandleCurrentPlaylistRequest

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

Overview

HandleCurrentPlaylist请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subappid = nil, roundplayid = nil, operation = nil, itemid = nil, segmentindex = nil, roundplaylist = nil) ⇒ HandleCurrentPlaylistRequest



15249
15250
15251
15252
15253
15254
15255
15256
# File 'lib/v20180717/models.rb', line 15249

def initialize(subappid=nil, roundplayid=nil, operation=nil, itemid=nil, segmentindex=nil, roundplaylist=nil)
  @SubAppId = subappid
  @RoundPlayId = roundplayid
  @Operation = operation
  @ItemId = itemid
  @SegmentIndex = segmentindex
  @RoundPlaylist = roundplaylist
end

Instance Attribute Details

#ItemIdObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def ItemId
  @ItemId
end

#OperationObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def Operation
  @Operation
end

#RoundPlayIdObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def RoundPlayId
  @RoundPlayId
end

#RoundPlaylistObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def RoundPlaylist
  @RoundPlaylist
end

#SegmentIndexObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def SegmentIndex
  @SegmentIndex
end

#SubAppIdObject



15247
15248
15249
# File 'lib/v20180717/models.rb', line 15247

def SubAppId
  @SubAppId
end

Instance Method Details

#deserialize(params) ⇒ Object



15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
# File 'lib/v20180717/models.rb', line 15258

def deserialize(params)
  @SubAppId = params['SubAppId']
  @RoundPlayId = params['RoundPlayId']
  @Operation = params['Operation']
  @ItemId = params['ItemId']
  @SegmentIndex = params['SegmentIndex']
  unless params['RoundPlaylist'].nil?
    @RoundPlaylist = []
    params['RoundPlaylist'].each do |i|
      roundplaylistiteminfo_tmp = RoundPlayListItemInfo.new
      roundplaylistiteminfo_tmp.deserialize(i)
      @RoundPlaylist << roundplaylistiteminfo_tmp
    end
  end
end