C# Class TraktPlugin.TraktCache

The TraktCache is used to store anything online that me need often e.g. collected, seen, ratings for movies, shows and episodes during plugin syncing
Afficher le fichier Open project: trakt/Trakt-for-Mediaportal

Private Properties

Свойство Type Description
AddCommentToLikes void
AddEpisodeToCollection void
AddEpisodeToPausedData void
AddEpisodeToRatings void
AddEpisodeToWatchHistory void
AddEpisodeToWatchlist void
AddEpisodesToCollection void
AddEpisodesToRatings void
AddEpisodesToWatchHistory void
AddListToLikes void
AddMovieToCollection void
AddMovieToPausedData void
AddMovieToRatings void
AddMovieToWatchHistory void
AddMovieToWatchlist void
AddMoviesToCollection void
AddMoviesToRatings void
AddMoviesToWatchHistory void
AddSeasonToRatings void
AddSeasonToWatchlist void
AddShowToCollection void
AddShowToRatings void
AddShowToWatchedHistory void
AddShowToWatchlist void
AddShowsToRatings void
ClearCustomListCache void
ClearLastActivityCache void
ClearLastMoviesActivityCache void
ClearLastShowsActivityCache void
ClearRecommendationsCache void
ClearSyncCache void
GetCustomLists List>.Dictionary
GetCustomListsFromTrakt IEnumerable
LoadFileCache string
RemoveCommentFromLikes void
RemoveEpisodeFromCollection void
RemoveEpisodeFromPausedData void
RemoveEpisodeFromRatings void
RemoveEpisodeFromWatchHistory void
RemoveEpisodeFromWatchlist void
RemoveEpisodeFromWatchlist void
RemoveEpisodesFromCollection void
RemoveEpisodesFromWatchHistory void
RemoveListFromLikes void
RemoveMovieFromCollection void
RemoveMovieFromPausedData void
RemoveMovieFromRatings void
RemoveMovieFromWatchHistory void
RemoveMovieFromWatchlist void
RemoveMoviesFromCollection void
RemoveMoviesFromRatings void
RemoveMoviesFromWatchHistory void
RemoveSeasonFromRatings void
RemoveSeasonFromWatchlist void
RemoveShowFromCollection void
RemoveShowFromRatings void
RemoveShowFromWatchedHistory void
RemoveShowFromWatchlist void
RemoveShowsFromRatings void
Save void
SaveFileCache void

Méthodes publiques

Méthode Description
Collected ( this show ) : int
Collected ( this season, TraktShowSummary show ) : int
GetCollectedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users collected episodes from Trakt

GetCollectedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users collected movies from Trakt

GetCommentedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users commented episodes from Trakt

GetCommentedListsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users commented lists from Trakt

GetCommentedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users commented movies from Trakt

GetCommentedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users commented seasons from Trakt

GetCommentedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users commented shows from Trakt

GetLikedCommentsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
GetLikedListsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
GetPausedEpisodes ( string &lastEpisodeProcessedAt, bool ignoreLastSyncTime = false ) : IEnumerable
GetPausedMovies ( string &lastMovieProcessedAt, bool ignoreLastSyncTime = false ) : IEnumerable
GetRatedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users rated episodes from Trakt

GetRatedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users rated movies from Trakt

GetRatedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users rated seasons from Trakt

GetRatedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users rated shows from Trakt

GetRecommendedMoviesFromTrakt ( ) : IEnumerable
GetUnWatchedEpisodesFromTrakt ( ) : IEnumerable

Get the users unwatched episodes since last sync This is something that has been previously watched but now has been removed from the users watched history either by toggling the watched state on a client or from online

GetUnWatchedMoviesFromTrakt ( ) : IEnumerable

Get the users unwatched movies since last sync This is something that has been previously watched but now has been removed from the users watched history either by toggling the watched state on a client or from online

GetWatchedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users watched episodes from Trakt

GetWatchedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users watched movies from Trakt

GetWatchlistedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users watchlisted episodes from Trakt

GetWatchlistedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
GetWatchlistedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users watchlisted seasons from Trakt

GetWatchlistedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable

Get the users watchlisted shows from Trakt

IsCollected ( this movie ) : bool
IsCollected ( this episode, TraktShow show ) : bool
IsCollected ( this season, TraktShowSummary show ) : bool
IsLiked ( this list ) : bool
IsWatched ( this movie ) : bool
IsWatched ( this episode, TraktShow show ) : bool
IsWatched ( this season, TraktShowSummary show ) : bool
IsWatchlisted ( this movie ) : bool
IsWatchlisted ( this episode, TraktShow show ) : bool
IsWatchlisted ( this season, TraktShowSummary show ) : bool
Plays ( this movie ) : int
Plays ( this episode, TraktShow show ) : int
Plays ( this season, TraktShowSummary show ) : int
RefreshData ( ) : bool

Refreshes local cache from online data This should be called before doing a sync

StatsEpisodesHated ( ) : int
StatsEpisodesLoved ( ) : int
StatsMoviesHated ( ) : int
StatsMoviesLoved ( ) : int
StatsShowsHated ( ) : int
StatsShowsLoved ( ) : int
UserRating ( this movie ) : int?
UserRating ( this episode, TraktShow show ) : int?
UserRating ( this season, TraktShowSummary show ) : int?

Private Methods

Méthode Description
AddCommentToLikes ( TraktComment comment ) : void
AddEpisodeToCollection ( TraktShow show, TraktEpisode episode ) : void
AddEpisodeToPausedData ( TraktShow show, TraktEpisode episode, float progress ) : void
AddEpisodeToRatings ( TraktShow show, TraktEpisode episode, int rating ) : void
AddEpisodeToWatchHistory ( TraktShow show, TraktEpisode episode ) : void
AddEpisodeToWatchlist ( TraktShowSummary show, TraktEpisodeSummary episode ) : void
AddEpisodesToCollection ( TraktSyncShowCollectedEx show ) : void
AddEpisodesToRatings ( TraktPlugin.TraktAPI.DataStructures.TraktSyncShowRatedEx show ) : void
AddEpisodesToWatchHistory ( TraktSyncShowWatchedEx show ) : void
AddListToLikes ( TraktListDetail list ) : void
AddMovieToCollection ( TraktMovie movie ) : void
AddMovieToPausedData ( TraktMovie movie, float progress ) : void
AddMovieToRatings ( TraktMovie movie, int rating ) : void
AddMovieToWatchHistory ( TraktMovie movie ) : void
AddMovieToWatchlist ( TraktMovie movie ) : void
AddMoviesToCollection ( List movies ) : void
AddMoviesToRatings ( List movies ) : void
AddMoviesToWatchHistory ( List movies ) : void
AddSeasonToRatings ( TraktShow show, TraktSeason season, int rating ) : void
AddSeasonToWatchlist ( TraktShow show, TraktSeason season ) : void
AddShowToCollection ( TraktShow show, List episodes ) : void
AddShowToRatings ( TraktShow show, int rating ) : void
AddShowToWatchedHistory ( TraktShow show, List episodes ) : void
AddShowToWatchlist ( TraktShow show ) : void
AddShowsToRatings ( List shows ) : void
ClearCustomListCache ( string listName = null ) : void
ClearLastActivityCache ( bool force = false ) : void
ClearLastMoviesActivityCache ( ) : void
ClearLastShowsActivityCache ( ) : void
ClearRecommendationsCache ( ) : void
ClearSyncCache ( ) : void
GetCustomLists ( bool ignoreLastSyncTime = false ) : List>.Dictionary

Returns the users custom lists with list item details

GetCustomListsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
LoadFileCache ( string file, string defaultValue ) : string
RemoveCommentFromLikes ( TraktComment comment ) : void
RemoveEpisodeFromCollection ( TraktShow show, TraktEpisode episode ) : void
RemoveEpisodeFromPausedData ( TraktShow show, TraktEpisode episode ) : void
RemoveEpisodeFromRatings ( TraktEpisode episode ) : void
RemoveEpisodeFromWatchHistory ( TraktShow show, TraktEpisode episode ) : void
RemoveEpisodeFromWatchlist ( TraktEpisode episode ) : void
RemoveEpisodeFromWatchlist ( TraktShow show, TraktEpisode episode ) : void
RemoveEpisodesFromCollection ( TraktSyncShowEx show ) : void
RemoveEpisodesFromWatchHistory ( TraktSyncShowEx show ) : void
RemoveListFromLikes ( TraktListDetail list ) : void
RemoveMovieFromCollection ( TraktMovie movie ) : void
RemoveMovieFromPausedData ( TraktMovie movie ) : void
RemoveMovieFromRatings ( TraktMovie movie ) : void
RemoveMovieFromWatchHistory ( TraktMovie movie ) : void
RemoveMovieFromWatchlist ( TraktMovie movie ) : void
RemoveMoviesFromCollection ( List movies ) : void
RemoveMoviesFromRatings ( List movies ) : void
RemoveMoviesFromWatchHistory ( List movies ) : void
RemoveSeasonFromRatings ( TraktShow show, TraktSeason season ) : void
RemoveSeasonFromWatchlist ( TraktShow show, TraktSeason season ) : void
RemoveShowFromCollection ( TraktShow show ) : void
RemoveShowFromRatings ( TraktShow show ) : void
RemoveShowFromWatchedHistory ( TraktShow show ) : void
RemoveShowFromWatchlist ( TraktShow show ) : void
RemoveShowsFromRatings ( List shows ) : void
Save ( ) : void

Save cached data which gets updated from real-time events

SaveFileCache ( string file, string value ) : void

Method Details

Collected() public static méthode

public static Collected ( this show ) : int
show this
Résultat int

Collected() public static méthode

public static Collected ( this season, TraktShowSummary show ) : int
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat int

GetCollectedEpisodesFromTrakt() public static méthode

Get the users collected episodes from Trakt
public static GetCollectedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCollectedMoviesFromTrakt() public static méthode

Get the users collected movies from Trakt
public static GetCollectedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCommentedEpisodesFromTrakt() public static méthode

Get the users commented episodes from Trakt
public static GetCommentedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCommentedListsFromTrakt() public static méthode

Get the users commented lists from Trakt
public static GetCommentedListsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCommentedMoviesFromTrakt() public static méthode

Get the users commented movies from Trakt
public static GetCommentedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCommentedSeasonsFromTrakt() public static méthode

Get the users commented seasons from Trakt
public static GetCommentedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetCommentedShowsFromTrakt() public static méthode

Get the users commented shows from Trakt
public static GetCommentedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetLikedCommentsFromTrakt() public static méthode

public static GetLikedCommentsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetLikedListsFromTrakt() public static méthode

public static GetLikedListsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetPausedEpisodes() public static méthode

public static GetPausedEpisodes ( string &lastEpisodeProcessedAt, bool ignoreLastSyncTime = false ) : IEnumerable
lastEpisodeProcessedAt string
ignoreLastSyncTime bool
Résultat IEnumerable

GetPausedMovies() public static méthode

public static GetPausedMovies ( string &lastMovieProcessedAt, bool ignoreLastSyncTime = false ) : IEnumerable
lastMovieProcessedAt string
ignoreLastSyncTime bool
Résultat IEnumerable

GetRatedEpisodesFromTrakt() public static méthode

Get the users rated episodes from Trakt
public static GetRatedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetRatedMoviesFromTrakt() public static méthode

Get the users rated movies from Trakt
public static GetRatedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetRatedSeasonsFromTrakt() public static méthode

Get the users rated seasons from Trakt
public static GetRatedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetRatedShowsFromTrakt() public static méthode

Get the users rated shows from Trakt
public static GetRatedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetRecommendedMoviesFromTrakt() public static méthode

public static GetRecommendedMoviesFromTrakt ( ) : IEnumerable
Résultat IEnumerable

GetUnWatchedEpisodesFromTrakt() public static méthode

Get the users unwatched episodes since last sync This is something that has been previously watched but now has been removed from the users watched history either by toggling the watched state on a client or from online
public static GetUnWatchedEpisodesFromTrakt ( ) : IEnumerable
Résultat IEnumerable

GetUnWatchedMoviesFromTrakt() public static méthode

Get the users unwatched movies since last sync This is something that has been previously watched but now has been removed from the users watched history either by toggling the watched state on a client or from online
public static GetUnWatchedMoviesFromTrakt ( ) : IEnumerable
Résultat IEnumerable

GetWatchedEpisodesFromTrakt() public static méthode

Get the users watched episodes from Trakt
public static GetWatchedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetWatchedMoviesFromTrakt() public static méthode

Get the users watched movies from Trakt
public static GetWatchedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetWatchlistedEpisodesFromTrakt() public static méthode

Get the users watchlisted episodes from Trakt
public static GetWatchlistedEpisodesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetWatchlistedMoviesFromTrakt() public static méthode

public static GetWatchlistedMoviesFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetWatchlistedSeasonsFromTrakt() public static méthode

Get the users watchlisted seasons from Trakt
public static GetWatchlistedSeasonsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

GetWatchlistedShowsFromTrakt() public static méthode

Get the users watchlisted shows from Trakt
public static GetWatchlistedShowsFromTrakt ( bool ignoreLastSyncTime = false ) : IEnumerable
ignoreLastSyncTime bool
Résultat IEnumerable

IsCollected() public static méthode

public static IsCollected ( this movie ) : bool
movie this
Résultat bool

IsCollected() public static méthode

public static IsCollected ( this episode, TraktShow show ) : bool
episode this
show TraktPlugin.TraktAPI.DataStructures.TraktShow
Résultat bool

IsCollected() public static méthode

public static IsCollected ( this season, TraktShowSummary show ) : bool
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat bool

IsLiked() public static méthode

public static IsLiked ( this list ) : bool
list this
Résultat bool

IsWatched() public static méthode

public static IsWatched ( this movie ) : bool
movie this
Résultat bool

IsWatched() public static méthode

public static IsWatched ( this episode, TraktShow show ) : bool
episode this
show TraktPlugin.TraktAPI.DataStructures.TraktShow
Résultat bool

IsWatched() public static méthode

public static IsWatched ( this season, TraktShowSummary show ) : bool
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat bool

IsWatchlisted() public static méthode

public static IsWatchlisted ( this movie ) : bool
movie this
Résultat bool

IsWatchlisted() public static méthode

public static IsWatchlisted ( this episode, TraktShow show ) : bool
episode this
show TraktPlugin.TraktAPI.DataStructures.TraktShow
Résultat bool

IsWatchlisted() public static méthode

public static IsWatchlisted ( this season, TraktShowSummary show ) : bool
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat bool

Plays() public static méthode

public static Plays ( this movie ) : int
movie this
Résultat int

Plays() public static méthode

public static Plays ( this episode, TraktShow show ) : int
episode this
show TraktPlugin.TraktAPI.DataStructures.TraktShow
Résultat int

Plays() public static méthode

public static Plays ( this season, TraktShowSummary show ) : int
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat int

RefreshData() public static méthode

Refreshes local cache from online data This should be called before doing a sync
public static RefreshData ( ) : bool
Résultat bool

StatsEpisodesHated() public static méthode

public static StatsEpisodesHated ( ) : int
Résultat int

StatsEpisodesLoved() public static méthode

public static StatsEpisodesLoved ( ) : int
Résultat int

StatsMoviesHated() public static méthode

public static StatsMoviesHated ( ) : int
Résultat int

StatsMoviesLoved() public static méthode

public static StatsMoviesLoved ( ) : int
Résultat int

StatsShowsHated() public static méthode

public static StatsShowsHated ( ) : int
Résultat int

StatsShowsLoved() public static méthode

public static StatsShowsLoved ( ) : int
Résultat int

UserRating() public static méthode

public static UserRating ( this movie ) : int?
movie this
Résultat int?

UserRating() public static méthode

public static UserRating ( this episode, TraktShow show ) : int?
episode this
show TraktPlugin.TraktAPI.DataStructures.TraktShow
Résultat int?

UserRating() public static méthode

public static UserRating ( this season, TraktShowSummary show ) : int?
season this
show TraktPlugin.TraktAPI.DataStructures.TraktShowSummary
Résultat int?