Class: TencentCloud::Ame::V20190916::SetPlaylistCommandInput

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

Overview

设置播放列表指令参数

Instance Attribute Summary collapse

  • #Index ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。.
  • #MusicIds ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。.
  • #MusicURLs ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。.
  • #Type ⇒ Object
  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。.

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of SetPlaylistCommandInput.

    
    
    2768
    2769
    2770
    2771
    2772
    2773
    2774
    # File 'lib/v20190916/models.rb', line 2768
    
    def initialize(type=nil, index=nil, changedindex=nil, musicids=nil, musicurls=nil)
      @Type = type
      @Index = index
      @ChangedIndex = changedindex
      @MusicIds = musicids
      @MusicURLs = musicurls
    end
    

    Instance Attribute Details

    #ChangedIndexObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

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

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。

    • MusicURLs:

      歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。

    
    
    2766
    2767
    2768
    # File 'lib/v20190916/models.rb', line 2766
    
    def ChangedIndex
      @ChangedIndex
    end
    

    #IndexObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

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

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。

    • MusicURLs:

      歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。

    
    
    2766
    2767
    2768
    # File 'lib/v20190916/models.rb', line 2766
    
    def Index
      @Index
    end
    

    #MusicIdsObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

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

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。

    • MusicURLs:

      歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。

    
    
    2766
    2767
    2768
    # File 'lib/v20190916/models.rb', line 2766
    
    def MusicIds
      @MusicIds
    end
    

    #MusicURLsObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

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

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。

    • MusicURLs:

      歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。

    
    
    2766
    2767
    2768
    # File 'lib/v20190916/models.rb', line 2766
    
    def MusicURLs
      @MusicURLs
    end
    

    #TypeObject

  • Add:添加
  • Delete:删除
  • ClearList:清空歌曲列表
  • Move:移动歌曲
  • 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。 注:URL必须以.mp3结尾且必须是mp3编码文件。

    Parameters:

    • Type:

      变更类型,取值有:

    • Index:

      歌单索引位置,

    • ChangedIndex:

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

    • MusicIds:

      歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。

    • MusicURLs:

      歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。

    
    
    2766
    2767
    2768
    # File 'lib/v20190916/models.rb', line 2766
    
    def Type
      @Type
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    2776
    2777
    2778
    2779
    2780
    2781
    2782
    # File 'lib/v20190916/models.rb', line 2776
    
    def deserialize(params)
      @Type = params['Type']
      @Index = params['Index']
      @ChangedIndex = params['ChangedIndex']
      @MusicIds = params['MusicIds']
      @MusicURLs = params['MusicURLs']
    end