TraktPlugin.TraktHelper.RemoveMovieFromLibrary C# (CSharp) Méthode

RemoveMovieFromLibrary() public static méthode

public static RemoveMovieFromLibrary ( string title, int year, string imdbid, int tmdbid, int traktid ) : void
title string
year int
imdbid string
tmdbid int
traktid int
Résultat void
        public static void RemoveMovieFromLibrary(string title, int? year, string imdbid, int? tmdbid, int? traktid)
        {
            if (!GUICommon.CheckLogin(false)) return;

            var movie = new TraktMovie
            {
                Ids = new TraktMovieId
                {
                    Trakt = traktid,
                    Imdb = imdbid,
                    Tmdb = tmdbid
                },
                Title = title,
                Year = year
            };

            var syncThread = new Thread((objSyncData) =>
            {
                var response = TraktAPI.TraktAPI.RemoveMovieFromCollection(objSyncData as TraktMovie);
            })
            {
                IsBackground = true,
                Name = "RemoveCollection"
            };

            syncThread.Start(movie);

            TraktCache.RemoveMovieFromCollection(movie);
        }