Class SetPlaylistCommandInput
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ame.v20190916.models.SetPlaylistCommandInput
-
public class SetPlaylistCommandInput extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SetPlaylistCommandInput()SetPlaylistCommandInput(SetPlaylistCommandInput source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetChangedIndex()Get 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。LonggetIndex()Get 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。String[]getMusicIds()Get 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。String[]getMusicURLs()Get 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。StringgetType()Get 变更类型,取值有: Add:添加 Delete:删除 ClearList:清空歌曲列表 Move:移动歌曲voidsetChangedIndex(Long ChangedIndex)Set 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。voidsetIndex(Long Index)Set 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。voidsetMusicIds(String[] MusicIds)Set 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。voidsetMusicURLs(String[] MusicURLs)Set 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。voidsetType(String Type)Set 变更类型,取值有: Add:添加 Delete:删除 ClearList:清空歌曲列表 Move:移动歌曲voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SetPlaylistCommandInput
public SetPlaylistCommandInput()
-
SetPlaylistCommandInput
public SetPlaylistCommandInput(SetPlaylistCommandInput source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getType
public String getType()
Get 变更类型,取值有:- Add:添加
- Delete:删除
- ClearList:清空歌曲列表
- Move:移动歌曲
- Returns:
- Type 变更类型,取值有:
- Add:添加
- Delete:删除
- ClearList:清空歌曲列表
- Move:移动歌曲
-
setType
public void setType(String Type)
Set 变更类型,取值有:- Add:添加
- Delete:删除
- ClearList:清空歌曲列表
- Move:移动歌曲
- Parameters:
Type- 变更类型,取值有:- Add:添加
- Delete:删除
- ClearList:清空歌曲列表
- Move:移动歌曲
-
getIndex
public Long getIndex()
Get 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。- Returns:
- Index 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。
-
setIndex
public void setIndex(Long Index)
Set 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。- Parameters:
Index- 歌单索引位置, 当 Type 取 Add 时,-1表示添加在列表最后位置,大于-1表示要添加的位置; 当 Type 取 Delete 时,表示待删除歌曲的位置; 当 Type 取 Move 时,表示待调整歌曲的位置。
-
getChangedIndex
public Long getChangedIndex()
Get 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。- Returns:
- ChangedIndex 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。
-
setChangedIndex
public void setChangedIndex(Long ChangedIndex)
Set 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。- Parameters:
ChangedIndex- 当 Type 取 Move 时,必填,表示移动歌曲的目标位置。
-
getMusicIds
public String[] getMusicIds()
Get 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。- Returns:
- MusicIds 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。
-
setMusicIds
public void setMusicIds(String[] MusicIds)
Set 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。- Parameters:
MusicIds- 歌曲 ID 列表,当 Type 取 Add 时,与MusicURLs必填其中一项。
-
getMusicURLs
public String[] getMusicURLs()
Get 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。- Returns:
- MusicURLs 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。
-
setMusicURLs
public void setMusicURLs(String[] MusicURLs)
Set 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。- Parameters:
MusicURLs- 歌曲 URL 列表,当 Type 取 Add 时,与MusicIds必填其中一项。 注:URL必须以.mp3结尾且必须是mp3编码文件。
-
-