C# Class TraktRater.TraktAPI.TraktAPI

Object that communicates with the Trakt API
Afficher le fichier Open project: damienhaynes/TraktRater

Méthodes publiques

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

Private Methods

Méthode Description
GetOAuthLogin ( string key ) : string

Gets a oAuth Login object

GetUserLogin ( ) : string

Gets a User Login object

Method Details

AddEpisodesToWatchedHistory() public static méthode

Sends episode watched sync data to Trakt
public static AddEpisodesToWatchedHistory ( TraktEpisodeWatchedSync syncData ) : TraktSyncResponse
syncData TraktEpisodeWatchedSync The sync data to send
Résultat TraktSyncResponse

AddEpisodesToWatchlist() public static méthode

Sends episode sync data to Trakt Watchlist
public static AddEpisodesToWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync The sync data to send
Résultat TraktSyncResponse

AddItemsToList() public static méthode

public static AddItemsToList ( string id, TraktSyncAll items, string username = "me" ) : TraktSyncResponse
id string
items TraktSyncAll
username string
Résultat TraktSyncResponse

AddMoviesToRatings() public static méthode

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

AddMoviesToWatchedHistory() public static méthode

Sends movies watched sync data to Trakt
public static AddMoviesToWatchedHistory ( TraktMovieWatchedSync syncData ) : TraktSyncResponse
syncData TraktMovieWatchedSync The sync data to send
Résultat TraktSyncResponse

AddMoviesToWatchlist() public static méthode

Sends movie sync data to Trakt Watchlist
public static AddMoviesToWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync The sync data to send
Résultat TraktSyncResponse

AddShowsToRatings() public static méthode

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

AddShowsToWatchlist() public static méthode

Sends show sync data to Trakt Watchlist
public static AddShowsToWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync The sync data to send
Résultat TraktSyncResponse

AddsEpisodesToRatings() public static méthode

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

CreateCustomList() public static méthode

public static CreateCustomList ( TraktList list, string username = "me" ) : TraktListDetail
list TraktList
username string
Résultat TraktListDetail

DeleteCustomList() public static méthode

public static DeleteCustomList ( string listId, string username = "me" ) : bool
listId string
username string
Résultat bool

GetCollectedMovies() public static méthode

Returns the current users collected movies
public static GetCollectedMovies ( ) : IEnumerable
Résultat IEnumerable

GetCollectedShows() public static méthode

Returns the current users collected episodes
public static GetCollectedShows ( ) : IEnumerable
Résultat IEnumerable

GetCustomListItems() public static méthode

public static GetCustomListItems ( string listId, string username = "me", string extendedInfoParams = "min" ) : IEnumerable
listId string
username string
extendedInfoParams string
Résultat IEnumerable

GetCustomLists() public static méthode

Returns all custom lists for a user
public static GetCustomLists ( string username = "me" ) : IEnumerable
username string Username of person's list
Résultat IEnumerable

GetOAuthToken() public static méthode

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

GetRatedEpisodes() public static méthode

Returns the current users Rated Episodes
public static GetRatedEpisodes ( ) : IEnumerable
Résultat IEnumerable

GetRatedMovies() public static méthode

Returns the current users Rated Movies
public static GetRatedMovies ( ) : IEnumerable
Résultat IEnumerable

GetRatedSeasons() public static méthode

Returns the current users Rated Seasons
public static GetRatedSeasons ( ) : IEnumerable
Résultat IEnumerable

GetRatedShows() public static méthode

Returns the current users Rated Shows
public static GetRatedShows ( ) : IEnumerable
Résultat IEnumerable

GetUserToken() public static méthode

Login to trakt to request a user token for all subsequent requests
public static GetUserToken ( ) : TraktUserToken
Résultat TraktUserToken

GetWatchedMovies() public static méthode

Returns the current users watched movies and play counts
public static GetWatchedMovies ( ) : IEnumerable
Résultat IEnumerable

GetWatchedShows() public static méthode

Returns the current users watched episodes and play counts
public static GetWatchedShows ( ) : IEnumerable
Résultat IEnumerable

GetWatchlistEpisodes() public static méthode

Returns the current users watchlist episodes
public static GetWatchlistEpisodes ( ) : IEnumerable
Résultat IEnumerable

GetWatchlistMovies() public static méthode

Returns the current users watchlist movies
public static GetWatchlistMovies ( ) : IEnumerable
Résultat IEnumerable

GetWatchlistSeasons() public static méthode

Returns the current users watchlist seasons
public static GetWatchlistSeasons ( ) : IEnumerable
Résultat IEnumerable

GetWatchlistShows() public static méthode

Returns the current users watchlist shows
public static GetWatchlistShows ( ) : IEnumerable
Résultat IEnumerable

RemoveEpisodesFromRatings() public static méthode

Removes all episode ratings from trakt
public static RemoveEpisodesFromRatings ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
Résultat TraktSyncResponse

RemoveEpisodesFromWatchlist() public static méthode

Removes all episodes from watchlist from trakt
public static RemoveEpisodesFromWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
Résultat TraktSyncResponse

RemoveMoviesFromCollection() public static méthode

Removes movies from users collection
public static RemoveMoviesFromCollection ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
Résultat TraktSyncResponse

RemoveMoviesFromRatings() public static méthode

Removes all movie ratings from trakt
public static RemoveMoviesFromRatings ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
Résultat TraktSyncResponse

RemoveMoviesFromWatchedHistory() public static méthode

Removes movies from users watched history
public static RemoveMoviesFromWatchedHistory ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
Résultat TraktSyncResponse

RemoveMoviesFromWatchlist() public static méthode

Removes all movies from watchlist from trakt
public static RemoveMoviesFromWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
Résultat TraktSyncResponse

RemoveSeasonsFromRatings() public static méthode

Removes all season ratings from trakt
public static RemoveSeasonsFromRatings ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
Résultat TraktSyncResponse

RemoveSeasonsFromWatchlist() public static méthode

Removes all seasons from watchlist from trakt
public static RemoveSeasonsFromWatchlist ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
Résultat TraktSyncResponse

RemoveShowsFromCollection() public static méthode

Removes all episodes for each show in users collection
public static RemoveShowsFromCollection ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Résultat TraktSyncResponse

RemoveShowsFromRatings() public static méthode

Removes all show ratings from trakt
public static RemoveShowsFromRatings ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Résultat TraktSyncResponse

RemoveShowsFromWatchedHistory() public static méthode

Removes all episodes for each show in users watched history
public static RemoveShowsFromWatchedHistory ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Résultat TraktSyncResponse

RemoveShowsFromWatchlist() public static méthode

Removes all shows from watchlist from trakt
public static RemoveShowsFromWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
Résultat TraktSyncResponse