C# Class kasthack.vksharp.RawApi.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

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

Delete ( long audioId, int ownerId ) : Task

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

DeleteAlbum ( long albumId, int groupId = null ) : Task

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

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 ) : Task
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
GetBroadcastListGroups ( bool active = true, int offset = null, int count = 100 ) : Task
GetBroadcastListUsers ( bool active = true, int offset = null, int count = 100 ) : Task
GetById ( bool itunes = false ) : Task
GetCount ( int ownerId = null ) : Task
GetLyrics ( long lyricsId ) : Task
GetPopular ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task
GetRecommendations ( AudioGenre genreId = null, bool onlyEng = null, int offset = null, int count = 100 ) : Task
GetUploadServer ( long albumId, int groupId = null ) : Task
MoveToAlbum ( long albumId, int groupId = null ) : Task
Reorder ( long audioId, int ownerId = null, long before = null, long after = null ) : Task
Restore ( long audioId, int ownerId = null ) : Task
Save ( string server, string audio, string hash, string artist = "", string title = "" ) : Task
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
SetBroadcast ( ContentId audio ) : Task

Private Methods

Method Description
MethodGroup_Audio ( RawApi 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

Delete() public method

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

DeleteAlbum() public method

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

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 ) : Task
albumId long
title string
groupId int
return Task

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

GetBroadcastListGroups() public method

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

GetBroadcastListUsers() public method

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

GetById() public method

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

GetCount() public method

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

GetLyrics() public method

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

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

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

GetUploadServer() public method

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

MoveToAlbum() public method

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

Reorder() public method

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

Restore() public method

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

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

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

SetBroadcast() public method

public SetBroadcast ( ContentId audio ) : Task
audio ContentId
return Task