Method | Description | |
---|---|---|
ClearLastChannel ( ) : void |
Removes saved last time played channel if exists.
|
|
DoubanFMClient ( ) : System.Collections.Generic |
Initializes a new instance of the DoubanFMClient class.
|
|
Like ( ) : void |
Indicates user mark current song as a liked-song.
|
|
LoadLastChannel ( ) : void |
Loads last time played channel from local storage. If no saved channel, a default channel will be applied. |
|
Login ( string email, string password, bool saveStatus ) : |
Signs in with user email and password and receives response from DoubanFM server.
|
|
Logout ( ) : void |
Signs out and remove saved user status if exists.
|
|
NewList ( ) : void |
Gets a new playlist.
|
|
Next ( ) : void |
Notifies server that current song plays to end, then play next song.
|
|
PlayNoMore ( ) : void |
Indicates do not play current song any more.
|
|
SaveCurrentChannel ( ) : void |
Saves current playing channel to local storage.
|
|
SaveStatus ( ) : void |
Saves current user sign-in status if exists.
|
|
Skip ( ) : void |
Skips current song.
|
|
SwitchChannel ( Channel newChannel ) : void |
Switches to another channel, playlist will be updated.
|
|
TryLoadStatus ( ) : bool |
Tries to recover user sign-in status from storage.
|
|
Unlike ( ) : void |
Indicates user unmark current song as a liked-song.
|
Method | Description | |
---|---|---|
DequeueToHistory ( PlayOperation operationType ) : |
||
ExtractPlaylist ( |
public DoubanFMClient ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public Login ( string email, string password, bool saveStatus ) : |
||
string | User email. | |
password | string | User password. |
saveStatus | bool | Indicates if this client should /// save user's status when sign-in succeeded. |
return |
public SwitchChannel ( Channel newChannel ) : void | ||
newChannel | Channel | |
return | void |