C# Класс TraktRater.TraktAPI.TraktAPI

Object that communicates with the Trakt API
Показать файл Открыть проект

Открытые методы

Метод Описание
AddEpisodesToWatchedHistory ( TraktEpisodeWatchedSync syncData ) : TraktSyncResponse

Sends episode watched sync data to Trakt

AddEpisodesToWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse

Sends episode sync data to Trakt Watchlist

AddItemsToList ( string id, TraktSyncAll items, string username = "me" ) : TraktSyncResponse
AddMoviesToRatings ( TraktMovieRatingSync data ) : TraktSyncResponse

Rates a list of movies on trakt

AddMoviesToWatchedHistory ( TraktMovieWatchedSync syncData ) : TraktSyncResponse

Sends movies watched sync data to Trakt

AddMoviesToWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse

Sends movie sync data to Trakt Watchlist

AddShowsToRatings ( TraktShowRatingSync data ) : TraktSyncResponse

Rates a list of shows on trakt

AddShowsToWatchlist ( TraktShowSync syncData ) : TraktSyncResponse

Sends show sync data to Trakt Watchlist

AddsEpisodesToRatings ( TraktEpisodeRatingSync data ) : TraktSyncResponse

Rates a list of episodes on trakt

CreateCustomList ( TraktList list, string username = "me" ) : TraktListDetail
DeleteCustomList ( string listId, string username = "me" ) : bool
GetCollectedMovies ( ) : IEnumerable

Returns the current users collected movies

GetCollectedShows ( ) : IEnumerable

Returns the current users collected episodes

GetCustomListItems ( string listId, string username = "me", string extendedInfoParams = "min" ) : IEnumerable
GetCustomLists ( string username = "me" ) : IEnumerable

Returns all custom lists for a user

GetOAuthToken ( string key ) : TraktOAuthToken

Login to trakt to request a user access token for all subsequent requests

GetRatedEpisodes ( ) : IEnumerable

Returns the current users Rated Episodes

GetRatedMovies ( ) : IEnumerable

Returns the current users Rated Movies

GetRatedSeasons ( ) : IEnumerable

Returns the current users Rated Seasons

GetRatedShows ( ) : IEnumerable

Returns the current users Rated Shows

GetUserToken ( ) : TraktUserToken

Login to trakt to request a user token for all subsequent requests

GetWatchedMovies ( ) : IEnumerable

Returns the current users watched movies and play counts

GetWatchedShows ( ) : IEnumerable

Returns the current users watched episodes and play counts

GetWatchlistEpisodes ( ) : IEnumerable

Returns the current users watchlist episodes

GetWatchlistMovies ( ) : IEnumerable

Returns the current users watchlist movies

GetWatchlistSeasons ( ) : IEnumerable

Returns the current users watchlist seasons

GetWatchlistShows ( ) : IEnumerable

Returns the current users watchlist shows

RemoveEpisodesFromRatings ( TraktEpisodeSync syncData ) : TraktSyncResponse

Removes all episode ratings from trakt

RemoveEpisodesFromWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse

Removes all episodes from watchlist from trakt

RemoveMoviesFromCollection ( TraktMovieSync syncData ) : TraktSyncResponse

Removes movies from users collection

RemoveMoviesFromRatings ( TraktMovieSync syncData ) : TraktSyncResponse

Removes all movie ratings from trakt

RemoveMoviesFromWatchedHistory ( TraktMovieSync syncData ) : TraktSyncResponse

Removes movies from users watched history

RemoveMoviesFromWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse

Removes all movies from watchlist from trakt

RemoveSeasonsFromRatings ( TraktSeasonSync syncData ) : TraktSyncResponse

Removes all season ratings from trakt

RemoveSeasonsFromWatchlist ( TraktSeasonSync syncData ) : TraktSyncResponse

Removes all seasons from watchlist from trakt

RemoveShowsFromCollection ( TraktShowSync syncData ) : TraktSyncResponse

Removes all episodes for each show in users collection

RemoveShowsFromRatings ( TraktShowSync syncData ) : TraktSyncResponse

Removes all show ratings from trakt

RemoveShowsFromWatchedHistory ( TraktShowSync syncData ) : TraktSyncResponse

Removes all episodes for each show in users watched history

RemoveShowsFromWatchlist ( TraktShowSync syncData ) : TraktSyncResponse

Removes all shows from watchlist from trakt

Приватные методы

Метод Описание
GetOAuthLogin ( string key ) : string

Gets a oAuth Login object

GetUserLogin ( ) : string

Gets a User Login object

Описание методов

AddEpisodesToWatchedHistory() публичный статический Метод

Sends episode watched sync data to Trakt
public static AddEpisodesToWatchedHistory ( TraktEpisodeWatchedSync syncData ) : TraktSyncResponse
syncData TraktEpisodeWatchedSync The sync data to send
Результат TraktSyncResponse

AddEpisodesToWatchlist() публичный статический Метод

Sends episode sync data to Trakt Watchlist
public static AddEpisodesToWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync The sync data to send
Результат TraktSyncResponse

AddItemsToList() публичный статический Метод

public static AddItemsToList ( string id, TraktSyncAll items, string username = "me" ) : TraktSyncResponse
id string
items TraktSyncAll
username string
Результат TraktSyncResponse

AddMoviesToRatings() публичный статический Метод

Rates a list of movies on trakt
public static AddMoviesToRatings ( TraktMovieRatingSync data ) : TraktSyncResponse
data TraktMovieRatingSync The object containing the list of movies to be rated
Результат TraktSyncResponse

AddMoviesToWatchedHistory() публичный статический Метод

Sends movies watched sync data to Trakt
public static AddMoviesToWatchedHistory ( TraktMovieWatchedSync syncData ) : TraktSyncResponse
syncData TraktMovieWatchedSync The sync data to send
Результат TraktSyncResponse

AddMoviesToWatchlist() публичный статический Метод

Sends movie sync data to Trakt Watchlist
public static AddMoviesToWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync The sync data to send
Результат TraktSyncResponse

AddShowsToRatings() публичный статический Метод

Rates a list of shows on trakt
public static AddShowsToRatings ( TraktShowRatingSync data ) : TraktSyncResponse
data TraktShowRatingSync The object containing the list of shows to be rated
Результат TraktSyncResponse

AddShowsToWatchlist() публичный статический Метод

Sends show sync data to Trakt Watchlist
public static AddShowsToWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync The sync data to send
Результат TraktSyncResponse

AddsEpisodesToRatings() публичный статический Метод

Rates a list of episodes on trakt
public static AddsEpisodesToRatings ( TraktEpisodeRatingSync data ) : TraktSyncResponse
data TraktEpisodeRatingSync The object containing the list of episodes to be rated
Результат TraktSyncResponse

CreateCustomList() публичный статический Метод

public static CreateCustomList ( TraktList list, string username = "me" ) : TraktListDetail
list TraktList
username string
Результат TraktListDetail

DeleteCustomList() публичный статический Метод

public static DeleteCustomList ( string listId, string username = "me" ) : bool
listId string
username string
Результат bool

GetCollectedMovies() публичный статический Метод

Returns the current users collected movies
public static GetCollectedMovies ( ) : IEnumerable
Результат IEnumerable

GetCollectedShows() публичный статический Метод

Returns the current users collected episodes
public static GetCollectedShows ( ) : IEnumerable
Результат IEnumerable

GetCustomListItems() публичный статический Метод

public static GetCustomListItems ( string listId, string username = "me", string extendedInfoParams = "min" ) : IEnumerable
listId string
username string
extendedInfoParams string
Результат IEnumerable

GetCustomLists() публичный статический Метод

Returns all custom lists for a user
public static GetCustomLists ( string username = "me" ) : IEnumerable
username string Username of person's list
Результат IEnumerable

GetOAuthToken() публичный статический Метод

Login to trakt to request a user access token for all subsequent requests
public static GetOAuthToken ( string key ) : TraktOAuthToken
key string Set this to a PinCode for first time oAuth otherwise your previous Access Token
Результат TraktOAuthToken

GetRatedEpisodes() публичный статический Метод

Returns the current users Rated Episodes
public static GetRatedEpisodes ( ) : IEnumerable
Результат IEnumerable

GetRatedMovies() публичный статический Метод

Returns the current users Rated Movies
public static GetRatedMovies ( ) : IEnumerable
Результат IEnumerable

GetRatedSeasons() публичный статический Метод

Returns the current users Rated Seasons
public static GetRatedSeasons ( ) : IEnumerable
Результат IEnumerable

GetRatedShows() публичный статический Метод

Returns the current users Rated Shows
public static GetRatedShows ( ) : IEnumerable
Результат IEnumerable

GetUserToken() публичный статический Метод

Login to trakt to request a user token for all subsequent requests
public static GetUserToken ( ) : TraktUserToken
Результат TraktUserToken

GetWatchedMovies() публичный статический Метод

Returns the current users watched movies and play counts
public static GetWatchedMovies ( ) : IEnumerable
Результат IEnumerable

GetWatchedShows() публичный статический Метод

Returns the current users watched episodes and play counts
public static GetWatchedShows ( ) : IEnumerable
Результат IEnumerable

GetWatchlistEpisodes() публичный статический Метод

Returns the current users watchlist episodes
public static GetWatchlistEpisodes ( ) : IEnumerable
Результат IEnumerable

GetWatchlistMovies() публичный статический Метод

Returns the current users watchlist movies
public static GetWatchlistMovies ( ) : IEnumerable
Результат IEnumerable

GetWatchlistSeasons() публичный статический Метод

Returns the current users watchlist seasons
public static GetWatchlistSeasons ( ) : IEnumerable
Результат IEnumerable

GetWatchlistShows() публичный статический Метод

Returns the current users watchlist shows
public static GetWatchlistShows ( ) : IEnumerable
Результат IEnumerable

RemoveEpisodesFromRatings() публичный статический Метод

Removes all episode ratings from trakt
public static RemoveEpisodesFromRatings ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
Результат TraktSyncResponse

RemoveEpisodesFromWatchlist() публичный статический Метод

Removes all episodes from watchlist from trakt
public static RemoveEpisodesFromWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
Результат TraktSyncResponse

RemoveMoviesFromCollection() публичный статический Метод

Removes movies from users collection
public static RemoveMoviesFromCollection ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
Результат TraktSyncResponse

RemoveMoviesFromRatings() публичный статический Метод

Removes all movie ratings from trakt
public static RemoveMoviesFromRatings ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
Результат TraktSyncResponse

RemoveMoviesFromWatchedHistory() публичный статический Метод

Removes movies from users watched history
public static RemoveMoviesFromWatchedHistory ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
Результат TraktSyncResponse

RemoveMoviesFromWatchlist() публичный статический Метод

Removes all movies from watchlist from trakt
public static RemoveMoviesFromWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
Результат TraktSyncResponse

RemoveSeasonsFromRatings() публичный статический Метод

Removes all season ratings from trakt
public static RemoveSeasonsFromRatings ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
Результат TraktSyncResponse

RemoveSeasonsFromWatchlist() публичный статический Метод

Removes all seasons from watchlist from trakt
public static RemoveSeasonsFromWatchlist ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
Результат TraktSyncResponse

RemoveShowsFromCollection() публичный статический Метод

Removes all episodes for each show in users collection
public static RemoveShowsFromCollection ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Результат TraktSyncResponse

RemoveShowsFromRatings() публичный статический Метод

Removes all show ratings from trakt
public static RemoveShowsFromRatings ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Результат TraktSyncResponse

RemoveShowsFromWatchedHistory() публичный статический Метод

Removes all episodes for each show in users watched history
public static RemoveShowsFromWatchedHistory ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Результат TraktSyncResponse

RemoveShowsFromWatchlist() публичный статический Метод

Removes all shows from watchlist from trakt
public static RemoveShowsFromWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Результат TraktSyncResponse