C# Класс AniDBmini.AniDBAPI

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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[]