C# 클래스 ChobiQ.DoubanFMAPICodePack.DoubanFMClient

Provides methods for sending data to and receiving data from DoubanFM server.
파일 보기 프로젝트 열기: jasine/SaveDouban 1 사용 예제들

공개 메소드들

메소드 설명
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 ) : LoginResponse

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.

비공개 메소드들

메소드 설명
DequeueToHistory ( PlayOperation operationType ) : Song
ExtractPlaylist ( PlaylistResponse resp, bool clearList ) : void

메소드 상세

ClearLastChannel() 공개 메소드

Removes saved last time played channel if exists.
public ClearLastChannel ( ) : void
리턴 void

DoubanFMClient() 공개 메소드

Initializes a new instance of the DoubanFMClient class.
public DoubanFMClient ( ) : System.Collections.Generic
리턴 System.Collections.Generic

Like() 공개 메소드

Indicates user mark current song as a liked-song.
public Like ( ) : void
리턴 void

LoadLastChannel() 공개 메소드

Loads last time played channel from local storage.
If no saved channel, a default channel will be applied.
public LoadLastChannel ( ) : void
리턴 void

Login() 공개 메소드

Signs in with user email and password and receives response from DoubanFM server.
public Login ( string email, string password, bool saveStatus ) : LoginResponse
email string User email.
password string User password.
saveStatus bool Indicates if this client should /// save user's status when sign-in succeeded.
리턴 LoginResponse

Logout() 공개 메소드

Signs out and remove saved user status if exists.
public Logout ( ) : void
리턴 void

NewList() 공개 메소드

Gets a new playlist.
public NewList ( ) : void
리턴 void

Next() 공개 메소드

Notifies server that current song plays to end, then play next song.
public Next ( ) : void
리턴 void

PlayNoMore() 공개 메소드

Indicates do not play current song any more.
public PlayNoMore ( ) : void
리턴 void

SaveCurrentChannel() 공개 메소드

Saves current playing channel to local storage.
public SaveCurrentChannel ( ) : void
리턴 void

SaveStatus() 공개 메소드

Saves current user sign-in status if exists.
public SaveStatus ( ) : void
리턴 void

Skip() 공개 메소드

Skips current song.
public Skip ( ) : void
리턴 void

SwitchChannel() 공개 메소드

Switches to another channel, playlist will be updated.
public SwitchChannel ( Channel newChannel ) : void
newChannel Channel
리턴 void

TryLoadStatus() 공개 메소드

Tries to recover user sign-in status from storage.
public TryLoadStatus ( ) : bool
리턴 bool

Unlike() 공개 메소드

Indicates user unmark current song as a liked-song.
public Unlike ( ) : void
리턴 void