C# Class kasthack.vksharp.Api.MethodGroup_Audio

显示文件 Open project: kasthack/kasthack.vksharp

Public Methods

Method Description
Add ( int ownerId, long audioId, int groupId = null, long albumId = null ) : Task

Копирует аудиозапись на страницу пользователя или группы

AddAlbum ( string title, int groupId ) : Task

Создает пустой альбом аудиозаписей

AddAlbumSync ( string title, int groupId ) : AddAlbum

Создает пустой альбом аудиозаписей

AddSync ( int ownerId, long audioId, int groupId = null, long albumId = null ) : int

Копирует аудиозапись на страницу пользователя или группы

Delete ( long audioId, int ownerId ) : System.Threading.Tasks.Task

Удаляет аудиозапись со страницы пользователя или сообщества

DeleteAlbum ( long albumId, int groupId = null ) : System.Threading.Tasks.Task

Удаляет альбом аудиозаписей

DeleteAlbumSync ( long albumId, int groupId = null ) : void

Удаляет альбом аудиозаписей

DeleteSync ( long audioId, int ownerId ) : void

Удаляет аудиозапись со страницы пользователя или сообщества

Edit ( int ownerId, long audioId, string artist = "", string title = "", string text = "", AudioGenre genreId = null, bool noSearch = null ) : Task
EditAlbum ( long albumId, string title, int groupId = null ) : System.Threading.Tasks.Task
EditAlbumSync ( long albumId, string title, int groupId = null ) : void
EditSync ( int ownerId, long audioId, string artist = "", string title = "", string text = "", AudioGenre genreId = null, bool noSearch = null ) : int
Get ( int ownerId = null, long albumId = null, int offset = null, int count = 100 ) : Task>
GetAlbums ( int ownerId = null, int offset = null, int count = 100 ) : Task>
GetAlbumsSync ( int ownerId = null, int offset = null, int count = 100 ) : EntityList
GetBroadcastListGroups ( bool active = true, int offset = null, int count = 100 ) : Task
GetBroadcastListGroupsSync ( bool active = true, int offset = null, int count = 100 ) : kasthack.vksharp.DataTypes.Entities.Group[]
GetBroadcastListUsers ( bool active = true, int offset = null, int count = 100 ) : Task
GetBroadcastListUsersSync ( bool active = true, int offset = null, int count = 100 ) : User[]
GetById ( bool itunes = false ) : Task
GetByIdSync ( bool itunes = false ) : kasthack.vksharp.DataTypes.Entities.Audio[]
GetCount ( int ownerId = null ) : Task
GetCountSync ( int ownerId = null ) : int
GetLyrics ( long lyricsId ) : Task
GetLyricsSync ( long lyricsId ) : Lyrics
GetPopular ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task>
GetPopularSync ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : EntityList
GetRecommendations ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task>
GetRecommendationsSync ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : EntityList
GetSync ( int ownerId = null, long albumId = null, int offset = null, int count = 100 ) : EntityList
GetUploadServer ( long albumId, int groupId = null ) : Task
GetUploadServerSync ( long albumId, int groupId = null ) : string
MoveToAlbum ( long albumId, int groupId = null ) : System.Threading.Tasks.Task
MoveToAlbumSync ( long albumId, int groupId = null ) : void
Reorder ( long audioId, int ownerId = null, long before = null, long after = null ) : System.Threading.Tasks.Task
ReorderSync ( long audioId, int ownerId = null, long before = null, long after = null ) : void
Restore ( long audioId, int ownerId = null ) : Task
RestoreSync ( long audioId, int ownerId = null ) : Audio
Save ( string server, string audio, string hash, string artist = "", string title = "" ) : Task
SaveSync ( string server, string audio, string hash, string artist = "", string title = "" ) : kasthack.vksharp.DataTypes.Entities.Audio[]
Search ( string q, bool autoComplete = true, bool lyrics = false, bool performerOnly = false, AudioSortOrder sort = AudioSortOrder.ByRating, bool searchOwn = false, int offset = null, int count = 100 ) : Task>
SearchSync ( string q, bool autoComplete = true, bool lyrics = false, bool performerOnly = false, AudioSortOrder sort = AudioSortOrder.ByRating, bool searchOwn = false, int offset = null, int count = 100 ) : EntityList
SetBroadcast ( ContentId audio ) : System.Threading.Tasks.Task
SetBroadcastSync ( ContentId audio ) : void

Private Methods

Method Description
MethodGroup_Audio ( Api parent ) : System

Method Details

Add() public method

Копирует аудиозапись на страницу пользователя или группы
public Add ( int ownerId, long audioId, int groupId = null, long albumId = null ) : Task
ownerId int идентификатор владельца аудиозаписи (пользователь или сообщество)
audioId long Идентификатор аудиозаписи
groupId int идентификатор сообщества (если аудиозапись необходимо скопировать в список сообщества)
albumId long идентификатор альбома, в который нужно переместить аудиозапись
return Task

AddAlbum() public method

Создает пустой альбом аудиозаписей
public AddAlbum ( string title, int groupId ) : Task
title string название альбома
groupId int идентификатор сообщества (если альбом нужно создать в сообществе)
return Task

AddAlbumSync() public method

Создает пустой альбом аудиозаписей
public AddAlbumSync ( string title, int groupId ) : AddAlbum
title string название альбома
groupId int идентификатор сообщества (если альбом нужно создать в сообществе)
return kasthack.vksharp.DataTypes.ResponseEntities.AddAlbum

AddSync() public method

Копирует аудиозапись на страницу пользователя или группы
public AddSync ( int ownerId, long audioId, int groupId = null, long albumId = null ) : int
ownerId int идентификатор владельца аудиозаписи (пользователь или сообщество)
audioId long Идентификатор аудиозаписи
groupId int идентификатор сообщества (если аудиозапись необходимо скопировать в список сообщества)
albumId long идентификатор альбома, в который нужно переместить аудиозапись
return int

Delete() public method

Удаляет аудиозапись со страницы пользователя или сообщества
public Delete ( long audioId, int ownerId ) : System.Threading.Tasks.Task
audioId long идентификатор аудиозаписи
ownerId int идентификатор владельца аудиозаписи (пользователь или сообщество)
return System.Threading.Tasks.Task

DeleteAlbum() public method

Удаляет альбом аудиозаписей
public DeleteAlbum ( long albumId, int groupId = null ) : System.Threading.Tasks.Task
albumId long идентификатор альбома
groupId int идентификатор сообщества, которому принадлежит альбом
return System.Threading.Tasks.Task

DeleteAlbumSync() public method

Удаляет альбом аудиозаписей
public DeleteAlbumSync ( long albumId, int groupId = null ) : void
albumId long идентификатор альбома
groupId int идентификатор сообщества, которому принадлежит альбом
return void

DeleteSync() public method

Удаляет аудиозапись со страницы пользователя или сообщества
public DeleteSync ( long audioId, int ownerId ) : void
audioId long идентификатор аудиозаписи
ownerId int идентификатор владельца аудиозаписи (пользователь или сообщество)
return void

Edit() public method

public Edit ( int ownerId, long audioId, string artist = "", string title = "", string text = "", AudioGenre genreId = null, bool noSearch = null ) : Task
ownerId int
audioId long
artist string
title string
text string
genreId AudioGenre
noSearch bool
return Task

EditAlbum() public method

public EditAlbum ( long albumId, string title, int groupId = null ) : System.Threading.Tasks.Task
albumId long
title string
groupId int
return System.Threading.Tasks.Task

EditAlbumSync() public method

public EditAlbumSync ( long albumId, string title, int groupId = null ) : void
albumId long
title string
groupId int
return void

EditSync() public method

public EditSync ( int ownerId, long audioId, string artist = "", string title = "", string text = "", AudioGenre genreId = null, bool noSearch = null ) : int
ownerId int
audioId long
artist string
title string
text string
genreId AudioGenre
noSearch bool
return int

Get() public method

public Get ( int ownerId = null, long albumId = null, int offset = null, int count = 100 ) : Task>
ownerId int
albumId long
offset int
count int
return Task>

GetAlbums() public method

public GetAlbums ( int ownerId = null, int offset = null, int count = 100 ) : Task>
ownerId int
offset int
count int
return Task>

GetAlbumsSync() public method

public GetAlbumsSync ( int ownerId = null, int offset = null, int count = 100 ) : EntityList
ownerId int
offset int
count int
return EntityList

GetBroadcastListGroups() public method

public GetBroadcastListGroups ( bool active = true, int offset = null, int count = 100 ) : Task
active bool
offset int
count int
return Task

GetBroadcastListGroupsSync() public method

public GetBroadcastListGroupsSync ( bool active = true, int offset = null, int count = 100 ) : kasthack.vksharp.DataTypes.Entities.Group[]
active bool
offset int
count int
return kasthack.vksharp.DataTypes.Entities.Group[]

GetBroadcastListUsers() public method

public GetBroadcastListUsers ( bool active = true, int offset = null, int count = 100 ) : Task
active bool
offset int
count int
return Task

GetBroadcastListUsersSync() public method

public GetBroadcastListUsersSync ( bool active = true, int offset = null, int count = 100 ) : User[]
active bool
offset int
count int
return User[]

GetById() public method

public GetById ( bool itunes = false ) : Task
itunes bool
return Task

GetByIdSync() public method

public GetByIdSync ( bool itunes = false ) : kasthack.vksharp.DataTypes.Entities.Audio[]
itunes bool
return kasthack.vksharp.DataTypes.Entities.Audio[]

GetCount() public method

public GetCount ( int ownerId = null ) : Task
ownerId int
return Task

GetCountSync() public method

public GetCountSync ( int ownerId = null ) : int
ownerId int
return int

GetLyrics() public method

public GetLyrics ( long lyricsId ) : Task
lyricsId long
return Task

GetLyricsSync() public method

public GetLyricsSync ( long lyricsId ) : Lyrics
lyricsId long
return kasthack.vksharp.DataTypes.Entities.Lyrics

GetPopular() public method

public GetPopular ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task>
genreId AudioGenre
onlyEng bool
offset int
count int
return Task>

GetPopularSync() public method

public GetPopularSync ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : EntityList
genreId AudioGenre
onlyEng bool
offset int
count int
return EntityList

GetRecommendations() public method

public GetRecommendations ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task>
genreId AudioGenre
onlyEng bool
offset int
count int
return Task>

GetRecommendationsSync() public method

public GetRecommendationsSync ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : EntityList
genreId AudioGenre
onlyEng bool
offset int
count int
return EntityList

GetSync() public method

public GetSync ( int ownerId = null, long albumId = null, int offset = null, int count = 100 ) : EntityList
ownerId int
albumId long
offset int
count int
return EntityList

GetUploadServer() public method

public GetUploadServer ( long albumId, int groupId = null ) : Task
albumId long
groupId int
return Task

GetUploadServerSync() public method

public GetUploadServerSync ( long albumId, int groupId = null ) : string
albumId long
groupId int
return string

MoveToAlbum() public method

public MoveToAlbum ( long albumId, int groupId = null ) : System.Threading.Tasks.Task
albumId long
groupId int
return System.Threading.Tasks.Task

MoveToAlbumSync() public method

public MoveToAlbumSync ( long albumId, int groupId = null ) : void
albumId long
groupId int
return void

Reorder() public method

public Reorder ( long audioId, int ownerId = null, long before = null, long after = null ) : System.Threading.Tasks.Task
audioId long
ownerId int
before long
after long
return System.Threading.Tasks.Task

ReorderSync() public method

public ReorderSync ( long audioId, int ownerId = null, long before = null, long after = null ) : void
audioId long
ownerId int
before long
after long
return void

Restore() public method

public Restore ( long audioId, int ownerId = null ) : Task
audioId long
ownerId int
return Task

RestoreSync() public method

public RestoreSync ( long audioId, int ownerId = null ) : Audio
audioId long
ownerId int
return kasthack.vksharp.DataTypes.Entities.Audio

Save() public method

public Save ( string server, string audio, string hash, string artist = "", string title = "" ) : Task
server string
audio string
hash string
artist string
title string
return Task

SaveSync() public method

public SaveSync ( string server, string audio, string hash, string artist = "", string title = "" ) : kasthack.vksharp.DataTypes.Entities.Audio[]
server string
audio string
hash string
artist string
title string
return kasthack.vksharp.DataTypes.Entities.Audio[]

Search() public method

public Search ( string q, bool autoComplete = true, bool lyrics = false, bool performerOnly = false, AudioSortOrder sort = AudioSortOrder.ByRating, bool searchOwn = false, int offset = null, int count = 100 ) : Task>
q string
autoComplete bool
lyrics bool
performerOnly bool
sort AudioSortOrder
searchOwn bool
offset int
count int
return Task>

SearchSync() public method

public SearchSync ( string q, bool autoComplete = true, bool lyrics = false, bool performerOnly = false, AudioSortOrder sort = AudioSortOrder.ByRating, bool searchOwn = false, int offset = null, int count = 100 ) : EntityList
q string
autoComplete bool
lyrics bool
performerOnly bool
sort AudioSortOrder
searchOwn bool
offset int
count int
return EntityList

SetBroadcast() public method

public SetBroadcast ( ContentId audio ) : System.Threading.Tasks.Task
audio ContentId
return System.Threading.Tasks.Task

SetBroadcastSync() public method

public SetBroadcastSync ( ContentId audio ) : void
audio ContentId
return void