Interface IAimpFileList
Represents the pair {File name, ID} for data provider.
Namespace: AIMP.SDK.MusicLibrary
Assembly: AIMP.SDK.dll
Syntax
public interface IAimpFileList
Methods
Add(Object, String)
Adds new file to the list.
Declaration
AimpActionResult Add(object id, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | id | File identifier. |
System.String | fileName | File name. |
Clear()
Clears the list.
Declaration
AimpActionResult Clear()
Clone()
Clones the list.
Declaration
AimpActionResult<IAimpFileList> Clone()
Delete(Int32)
Deletes the file by index.
Declaration
AimpActionResult Delete(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
GetCount()
Get the count of list.
Declaration
int GetCount()
GetFileName(Int32)
Gets the file name.
Declaration
AimpActionResult<string> GetFileName(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
GetId(Int32)
Gets the file identifier.
Declaration
AimpActionResult<object> GetId(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Insert(Int32, Object, String)
Inserts new file to the list at specified index.
Declaration
AimpActionResult Insert(int index, object id, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Object | id | The identifier. |
System.String | fileName | The file name. |
SetFileName(Int32, String)
Sets the new name for file.
Declaration
AimpActionResult SetFileName(int index, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.String | fileName | New file name. |
SetId(Int32, Object)
Sets the new identifier for file.
Declaration
AimpActionResult SetId(int index, object id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Object | id | New identifier. |