C# Class BlottoBeats.Library.Networking.BBRequest

Afficher le fichier Open project: Zwolf11/BlottoBeats Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

BBRequest() public méthode

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
Résultat System

BBRequest() public méthode

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
Résultat System

BBRequest() public méthode

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
Résultat System

BBRequest() public méthode

public BBRequest ( int numberOfSongs, string genre, string username ) : System
numberOfSongs int
genre string
username string
Résultat System