Class: TencentCloud::Yinsuda::V20220527::KTVMusicBaseInfo

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

Overview

歌曲基础信息。

Instance Attribute Summary collapse

  • #Duration ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #MusicId ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #Name ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #RecommendType ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #RightSet ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #SingerImageUrl ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

  • #SingerSet ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(musicid = nil, name = nil, singerset = nil, duration = nil, singerimageurl = nil, albuminfo = nil, rightset = nil, recommendtype = nil) ⇒ KTVMusicBaseInfo

    Returns a new instance of KTVMusicBaseInfo.

    
    
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    # File 'lib/v20220527/models.rb', line 1238
    
    def initialize(musicid=nil, name=nil, singerset=nil, duration=nil, singerimageurl=nil, albuminfo=nil, rightset=nil, recommendtype=nil)
      @MusicId = musicid
      @Name = name
      @SingerSet = singerset
      @Duration = duration
      @SingerImageUrl = singerimageurl
      @AlbumInfo = albuminfo
      @RightSet = rightset
      @RecommendType = recommendtype
    end

    Instance Attribute Details

    #AlbumInfoObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def AlbumInfo
      @AlbumInfo
    end

    #DurationObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def Duration
      @Duration
    end

    #MusicIdObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def MusicId
      @MusicId
    end

    #NameObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def Name
      @Name
    end

    #RecommendTypeObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def RecommendType
      @RecommendType
    end

    #RightSetObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def RightSet
      @RightSet
    end

    #SingerImageUrlObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def SingerImageUrl
      @SingerImageUrl
    end

    #SingerSetObject

    注意:此字段可能返回 null,表示取不到有效值。

  • Play:可播;
  • Sing:可唱。
  • Featured:精选;
  • Other:其他。
  • Parameters:

    • MusicId:

      歌曲Id。

    • Name:

      歌曲名称。

    • SingerSet:

      歌手名称。

    • Duration:

      播放时长。

    • SingerImageUrl:

      歌手图片链接。

    • AlbumInfo:

      专辑信息。

    • RightSet:

      权益列表,取值有:

    • RecommendType:

      推荐类型,取值有:

    
    
    1236
    1237
    1238
    # File 'lib/v20220527/models.rb', line 1236
    
    def SingerSet
      @SingerSet
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    # File 'lib/v20220527/models.rb', line 1249
    
    def deserialize(params)
      @MusicId = params['MusicId']
      @Name = params['Name']
      @SingerSet = params['SingerSet']
      @Duration = params['Duration']
      @SingerImageUrl = params['SingerImageUrl']
      unless params['AlbumInfo'].nil?
        @AlbumInfo = MusicAlbumInfo.new
        @AlbumInfo.deserialize(params['AlbumInfo'])
      end
      @RightSet = params['RightSet']
      @RecommendType = params['RecommendType']
    end