C# Class TraktPlugin.TraktHandlers.MyFilmsHandler

Inheritance: ITraktHandler
Mostra file Open project: trakt/Trakt-for-Mediaportal Class Usage Examples

Public Methods

Method Description
CreateScrobbleData ( MyFilmsPlugin.MyFilms.MFMovie movie ) : TraktScrobbleMovie

Creates Scrobble data based on a MFMovie object

DisposeEvents ( ) : void
FindMovie ( string title, int year, string imdbid ) : MyFilmsPlugin.MyFilms.MFMovie
FindMovie ( string title, int year, string imdbid, int &movieid, string &config ) : bool
MyFilmsHandler ( int priority ) : System
Scrobble ( string filename ) : bool
SetUserRating ( int rating, string title, int year, string imdbid ) : void
StopScrobble ( ) : void
SyncLibrary ( ) : void
SyncProgress ( ) : void

Private Methods

Method Description
MovieMatch ( MyFilmsPlugin.MyFilms.MFMovie mfMovie, TraktMovie traktMovie ) : bool
OnImportComplete ( ) : void
OnRateItem ( MyFilmsPlugin.MyFilms.MFMovie movie, string value ) : void
OnStartedMovie ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void
OnStoppedMovie ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void
OnToggleWatched ( MyFilmsPlugin.MyFilms.MFMovie movie, bool watched, int count ) : void
OnWatchedMovie ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void
RemoveMovieFromRecommendations ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void

Removes movie from Recommendations

RemoveMovieFromWatchlist ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void

Removes movie from Watchlist

ShowRateDialog ( MyFilmsPlugin.MyFilms.MFMovie movie ) : void

Shows the Rate Movie Dialog after playback has ended

Method Details

CreateScrobbleData() public static method

Creates Scrobble data based on a MFMovie object
public static CreateScrobbleData ( MyFilmsPlugin.MyFilms.MFMovie movie ) : TraktScrobbleMovie
movie MyFilmsPlugin.MyFilms.MFMovie The movie to base the object on
return TraktPlugin.TraktAPI.DataStructures.TraktScrobbleMovie

DisposeEvents() public method

public DisposeEvents ( ) : void
return void

FindMovie() public static method

public static FindMovie ( string title, int year, string imdbid ) : MyFilmsPlugin.MyFilms.MFMovie
title string
year int
imdbid string
return MyFilmsPlugin.MyFilms.MFMovie

FindMovie() public static method

public static FindMovie ( string title, int year, string imdbid, int &movieid, string &config ) : bool
title string
year int
imdbid string
movieid int
config string
return bool

MyFilmsHandler() public method

public MyFilmsHandler ( int priority ) : System
priority int
return System

Scrobble() public method

public Scrobble ( string filename ) : bool
filename string
return bool

SetUserRating() public static method

public static SetUserRating ( int rating, string title, int year, string imdbid ) : void
rating int
title string
year int
imdbid string
return void

StopScrobble() public method

public StopScrobble ( ) : void
return void

SyncLibrary() public method

public SyncLibrary ( ) : void
return void

SyncProgress() public method

public SyncProgress ( ) : void
return void