C# 클래스 AniDBmini.AniDBAPI

파일 보기 프로젝트 열기: ahodesuka/AniDBmini 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
isConnected bool
statsText string[]

공개 메소드들

메소드 설명
AniDBAPI ( string server, int port, int localPort ) : System
Anime ( int animeID ) : void

Anime command to create a anime tab from an anime ID.

AppendDebugLine ( string line ) : void
File ( FileEntry entry ) : void
File ( HashItem item ) : void
Login ( string user, string pass ) : bool
Logout ( ) : void
MyListAdd ( HashItem item ) : void
MyListDel ( int lid ) : bool
MyListStats ( ) : int[]

Retrieves mylist stats.

RandomAnime ( int type ) : void

Retrieves a random anime from a certian criteria.

cancelHashing ( ) : void
ed2kHash ( HashItem item ) : HashItem

비공개 메소드들

메소드 설명
CalculateTimeout ( ) : int

Calculates the timeout for the next low priority command using a list of datetimes for every query in the past minute.

Execute ( string cmd ) : APIResponse

Executes a given command. And returns a response.

ParseFileData ( object item, string data ) : void

Parses the return message of a FILE command, and then triggers the OnFileInfoFetched event.

PrioritizedCommand ( System.Action Command ) : void

Executes an action after a certain amount of time has passed since the previous command was sent to the server.

메소드 상세

AniDBAPI() 공개 메소드

public AniDBAPI ( string server, int port, int localPort ) : System
server string
port int
localPort int
리턴 System

Anime() 공개 메소드

Anime command to create a anime tab from an anime ID.
public Anime ( int animeID ) : void
animeID int
리턴 void

AppendDebugLine() 공개 정적인 메소드

public static AppendDebugLine ( string line ) : void
line string
리턴 void

File() 공개 메소드

public File ( FileEntry entry ) : void
entry AniDBmini.Collections.FileEntry
리턴 void

File() 공개 메소드

public File ( HashItem item ) : void
item HashItem
리턴 void

Login() 공개 메소드

public Login ( string user, string pass ) : bool
user string
pass string
리턴 bool

Logout() 공개 메소드

public Logout ( ) : void
리턴 void

MyListAdd() 공개 메소드

public MyListAdd ( HashItem item ) : void
item HashItem
리턴 void

MyListDel() 공개 메소드

public MyListDel ( int lid ) : bool
lid int
리턴 bool

MyListStats() 공개 메소드

Retrieves mylist stats.
public MyListStats ( ) : int[]
리턴 int[]

RandomAnime() 공개 메소드

Retrieves a random anime from a certian criteria.
public RandomAnime ( int type ) : void
type int type: 0=from db, 1=watched, 2=unwatched, 3=all mylist
리턴 void

cancelHashing() 공개 메소드

public cancelHashing ( ) : void
리턴 void

ed2kHash() 공개 메소드

public ed2kHash ( HashItem item ) : HashItem
item HashItem
리턴 HashItem

프로퍼티 상세

isConnected 공개적으로 프로퍼티

public bool isConnected
리턴 bool

statsText 공개적으로 정적으로 프로퍼티

public static string[] statsText
리턴 string[]