Class: TencentCloud::Yinsuda::V20220527::DescribeKTVMusicAccompanySegmentUrlResponse

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

Overview

DescribeKTVMusicAccompanySegmentUrl返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, url = nil, extname = nil, segmentbegin = nil, segmentend = nil, filesize = nil, othersegments = nil, requestid = nil) ⇒ DescribeKTVMusicAccompanySegmentUrlResponse

Returns a new instance of DescribeKTVMusicAccompanySegmentUrlResponse.



380
381
382
383
384
385
386
387
388
389
# File 'lib/v20220527/models.rb', line 380

def initialize(status=nil, url=nil, extname=nil, segmentbegin=nil, segmentend=nil, filesize=nil, othersegments=nil, requestid=nil)
  @Status = status
  @Url = url
  @ExtName = extname
  @SegmentBegin = segmentbegin
  @SegmentEnd = segmentend
  @FileSize = filesize
  @OtherSegments = othersegments
  @RequestId = requestid
end

Instance Attribute Details

#ExtNameObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def ExtName
  @ExtName
end

#FileSizeObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def FileSize
  @FileSize
end

#OtherSegmentsObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def OtherSegments
  @OtherSegments
end

#RequestIdObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def RequestId
  @RequestId
end

#SegmentBeginObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def SegmentBegin
  @SegmentBegin
end

#SegmentEndObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def SegmentEnd
  @SegmentEnd
end

#StatusObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def Status
  @Status
end

#UrlObject

0:可用1:下线2:没权限3:没伴奏当返回2时,其他参数有可能全部为空注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    歌曲状态。

  • Url:

    伴奏链接

  • ExtName:

    伴奏类型,如mkv,mp3等

  • SegmentBegin:

    高潮开始时间

  • SegmentEnd:

    高潮结束时间

  • FileSize:

    链接文件大小 单位 字节

  • OtherSegments:

    其它片段时间(可用于抢唱)

  • RequestId:

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



378
379
380
# File 'lib/v20220527/models.rb', line 378

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/v20220527/models.rb', line 391

def deserialize(params)
  @Status = params['Status']
  @Url = params['Url']
  @ExtName = params['ExtName']
  @SegmentBegin = params['SegmentBegin']
  @SegmentEnd = params['SegmentEnd']
  @FileSize = params['FileSize']
  unless params['OtherSegments'].nil?
    @OtherSegments = []
    params['OtherSegments'].each do |i|
      ktvothersegments_tmp = KTVOtherSegments.new
      ktvothersegments_tmp.deserialize(i)
      @OtherSegments << ktvothersegments_tmp
    end
  end
  @RequestId = params['RequestId']
end