Class AnilibriaAPI
Static Anilibria client with out loggin system. Use this to get titles, youtube posts and feed from anilibria and other different things
Inheritance
Inherited Members
Namespace: Anilibria.NET.Client
Assembly: Anilibria.NET.dll
Syntax
public static class AnilibriaAPI
Methods
GetAnimeYearsAsync()
Returns all years of anime which anilibria translated
Declaration
public static Task<int[]> GetAnimeYearsAsync()
Returns
Type | Description |
---|---|
Task<System.Int32[]> | Years list as System.Int32 |
GetCachingNodesAsync()
Returns change nodes as System.Strings
Declaration
public static Task<string[]> GetCachingNodesAsync()
Returns
Type | Description |
---|---|
Task<System.String[]> | Change nodes as System.Strings |
GetFeedAsync(DateTime, Int32, Int32)
Returns feed from anilibria.tv
Declaration
public static Task<Feed[]> GetFeedAsync(DateTime dateTime, int limit = 5, int after = 0)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime | Feed after that date |
System.Int32 | limit | Limit of posts in response |
System.Int32 | after | Response posts after that index |
Returns
Type | Description |
---|---|
Task<Feed[]> |
GetGenresAsync(GenresSortingType)
Returns all genres as System.String array
Declaration
public static Task<string[]> GetGenresAsync(GenresSortingType sortingType)
Parameters
Type | Name | Description |
---|---|---|
GenresSortingType | sortingType | Sorting type, see more in GenresSortingType |
Returns
Type | Description |
---|---|
Task<System.String[]> | genres as System.String array |
GetRandomTitleAsync()
Returns random Title
Declaration
public static Task<Title> GetRandomTitleAsync()
Returns
Type | Description |
---|---|
Task<Title> | Random Title |
GetTitleAsync(Int32)
Returns title by id
Declaration
public static Task<Title> GetTitleAsync(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Title ID |
Returns
Type | Description |
---|---|
Task<Title> |
GetTitleAsync(String)
Returns title by code
Declaration
public static Task<Title> GetTitleAsync(string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Title code |
Returns
Type | Description |
---|---|
Task<Title> |
GetTitlesAsync(Int32[])
Returns titles by ids
Declaration
public static Task<Title[]> GetTitlesAsync(int[] ids)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | ids | Title ids |
Returns
Type | Description |
---|---|
Task<Title[]> |
GetTitlesAsync(String[])
Returns titles by codes
Declaration
public static Task<Title[]> GetTitlesAsync(string[] codes)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | codes | Title codes |
Returns
Type | Description |
---|---|
Task<Title[]> |
GetTitlesChangesAsync(DateTime, Int32)
Returns changed titles
Declaration
public static Task<Title[]> GetTitlesChangesAsync(DateTime dateTime, int after = 0)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime | Changes after date |
System.Int32 | after | Returns titles after this index |
Returns
Type | Description |
---|---|
Task<Title[]> | changed Title |
GetTitlesScheduleAsync(Int32[])
Returns schedules of days from list
Declaration
public static Task<Schedule[]> GetTitlesScheduleAsync(int[] days)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | days | List of days for which you want to see the schedule |
Returns
Type | Description |
---|---|
Task<Schedule[]> | Schedule of days |
GetTitlesUpdatesAsync(Int32, Int32)
Returns updated titles
Declaration
public static Task<Title[]> GetTitlesUpdatesAsync(int limit = 5, int after = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | limit | Titles limit in respose |
System.Int32 | after | Return title after this N |
Returns
Type | Description |
---|---|
Task<Title[]> | updated Titles |
GetYouTubePostsAsync(DateTime, Int32, Int32)
Returns youtube posts (YouTubePost)
Declaration
public static Task<YouTubePost[]> GetYouTubePostsAsync(DateTime dateTime, int limit = 5, int after = 0)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime | Search youtube posts after that date |
System.Int32 | limit | Limit of posts in response |
System.Int32 | after | Response posts after that index |
Returns
Type | Description |
---|---|
Task<YouTubePost[]> |
SearchTitlesAsync(SearchQueryBuilder)
Search titles using SearchQueryBuilder
Declaration
public static Task<Title[]> SearchTitlesAsync(SearchQueryBuilder queryBuilder)
Parameters
Type | Name | Description |
---|---|---|
SearchQueryBuilder | queryBuilder | Query builder for search |
Returns
Type | Description |
---|---|
Task<Title[]> |