C# Класс BlottoBeats.Library.Networking.BBRequest

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BBRequest ( SongParameters song, UserToken userInfo ) : System

Sends a request for the score of a single song. The response will contain a single SongParameters item with the song and it's score

BBRequest ( SongParameters song, bool upOrDownvote, UserToken userInfo ) : System

Sends an upload request with a single song and either an upvote or a downvote. The server will check the database for that song. If the song exists, it will add the vote to it, otherwise it will add the song to the server and save it with the vote. The response will contain a single SongParameters item with the song and it's score

BBRequest ( int numberOfSongs ) : System

Sends a request for a list of songs that match the given parameters. If a parameter is null, it will match all values for that parameter. The response will contain a list of songs that match the parameters.

BBRequest ( int numberOfSongs, string genre, string username ) : System

Описание методов

BBRequest() публичный Метод

Sends a request for the score of a single song. The response will contain a single SongParameters item with the song and it's score
public BBRequest ( SongParameters song, UserToken userInfo ) : System
song BlottoBeats.Library.SongData.SongParameters Song to check the score of
userInfo BlottoBeats.Library.Authentication.UserToken The user authentication token
Результат System

BBRequest() публичный Метод

Sends an upload request with a single song and either an upvote or a downvote. The server will check the database for that song. If the song exists, it will add the vote to it, otherwise it will add the song to the server and save it with the vote. The response will contain a single SongParameters item with the song and it's score
public BBRequest ( SongParameters song, bool upOrDownvote, UserToken userInfo ) : System
song BlottoBeats.Library.SongData.SongParameters Song to upload
upOrDownvote bool Vote. True if an upvote, false otherwise.
userInfo BlottoBeats.Library.Authentication.UserToken The user authentication token
Результат System

BBRequest() публичный Метод

Sends a request for a list of songs that match the given parameters. If a parameter is null, it will match all values for that parameter. The response will contain a list of songs that match the parameters.
public BBRequest ( int numberOfSongs ) : System
numberOfSongs int Number of songs to return
Результат System

BBRequest() публичный Метод

public BBRequest ( int numberOfSongs, string genre, string username ) : System
numberOfSongs int
genre string
username string
Результат System