C# Class AniDBmini.AniDBAPI

Afficher le fichier Open project: ahodesuka/AniDBmini Class Usage Examples

Méthodes publiques

Свойство Type Description
isConnected bool
statsText string[]

Méthodes publiques

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

Private Methods

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

Method Details

AniDBAPI() public méthode

public AniDBAPI ( string server, int port, int localPort ) : System
server string
port int
localPort int
Résultat System

Anime() public méthode

Anime command to create a anime tab from an anime ID.
public Anime ( int animeID ) : void
animeID int
Résultat void

AppendDebugLine() public static méthode

public static AppendDebugLine ( string line ) : void
line string
Résultat void

File() public méthode

public File ( FileEntry entry ) : void
entry AniDBmini.Collections.FileEntry
Résultat void

File() public méthode

public File ( HashItem item ) : void
item HashItem
Résultat void

Login() public méthode

public Login ( string user, string pass ) : bool
user string
pass string
Résultat bool

Logout() public méthode

public Logout ( ) : void
Résultat void

MyListAdd() public méthode

public MyListAdd ( HashItem item ) : void
item HashItem
Résultat void

MyListDel() public méthode

public MyListDel ( int lid ) : bool
lid int
Résultat bool

MyListStats() public méthode

Retrieves mylist stats.
public MyListStats ( ) : int[]
Résultat int[]

RandomAnime() public méthode

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

cancelHashing() public méthode

public cancelHashing ( ) : void
Résultat void

ed2kHash() public méthode

public ed2kHash ( HashItem item ) : HashItem
item HashItem
Résultat HashItem

Property Details

isConnected public_oe property

public bool isConnected
Résultat bool

statsText public_oe static_oe property

public static string[] statsText
Résultat string[]