Class: TencentCloud::Yinsuda::V20220527::SetPlaylistCommandInput

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

Overview

设置播放列表指令参数

Instance Attribute Summary collapse

  • #Index ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。.
  • #MusicIds ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。.
  • #Type ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。.

    Instance Method Summary collapse

    Constructor Details

    #initialize(type = nil, index = nil, changedindex = nil, musicids = nil) ⇒ SetPlaylistCommandInput

    Returns a new instance of SetPlaylistCommandInput.

    
    
    1959
    1960
    1961
    1962
    1963
    1964
    # File 'lib/v20220527/models.rb', line 1959
    
    def initialize(type=nil, index=nil, changedindex=nil, musicids=nil)
      @Type = type
      @Index = index
      @ChangedIndex = changedindex
      @MusicIds = musicids
    end

    Instance Attribute Details

    #ChangedIndexObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

      当 Type 取 Move 时,必填,表示移动歌曲的目标位置。

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,必填。

    
    
    1957
    1958
    1959
    # File 'lib/v20220527/models.rb', line 1957
    
    def ChangedIndex
      @ChangedIndex
    end

    #IndexObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

      当 Type 取 Move 时,必填,表示移动歌曲的目标位置。

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,必填。

    
    
    1957
    1958
    1959
    # File 'lib/v20220527/models.rb', line 1957
    
    def Index
      @Index
    end

    #MusicIdsObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

      当 Type 取 Move 时,必填,表示移动歌曲的目标位置。

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,必填。

    
    
    1957
    1958
    1959
    # File 'lib/v20220527/models.rb', line 1957
    
    def MusicIds
      @MusicIds
    end

    #TypeObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

      当 Type 取 Move 时,必填,表示移动歌曲的目标位置。

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,必填。

    
    
    1957
    1958
    1959
    # File 'lib/v20220527/models.rb', line 1957
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    1966
    1967
    1968
    1969
    1970
    1971
    # File 'lib/v20220527/models.rb', line 1966
    
    def deserialize(params)
      @Type = params['Type']
      @Index = params['Index']
      @ChangedIndex = params['ChangedIndex']
      @MusicIds = params['MusicIds']
    end