Пример #1
0
        public static TraktSyncResponse AddShowToWatchlist(TraktShow show)
        {
            var shows = new TraktSyncShows
            {
                Shows = new List<TraktShow>() { show }
            };

            return AddShowsToWatchlist(shows);
        }
Пример #2
0
 public static TraktSyncResponse AddShowsToWatchlist(TraktSyncShows shows)
 {
     var response = PostToTrakt(TraktURIs.SyncWatchlistAdd, shows.ToJSON());
     return response.FromJSON<TraktSyncResponse>();
 }
Пример #3
0
        public static TraktSyncResponse AddShowToCollection(TraktShow show)
        {
            var shows = new TraktSyncShows
            {
                Shows = new List<TraktShow>() { show }
            };

            return AddShowsToCollecton(shows);
        }
Пример #4
0
 public static TraktSyncResponse AddShowsToCollecton(TraktSyncShows shows)
 {
     var response = PostToTrakt(TraktURIs.SyncCollectionAdd, shows.ToJSON());
     return response.FromJSON<TraktSyncResponse>();
 }
Пример #5
0
 public static TraktSyncResponse RemoveShowsFromWatchlist(TraktSyncShows shows)
 {
     var response = PostToTrakt(TraktURIs.SyncWatchlistRemove, shows.ToJSON());
     return response.FromJSON<TraktSyncResponse>();
 }
Пример #6
0
        public static TraktSyncResponse RemoveShowFromWatchlist(TraktShow show)
        {
            var shows = new TraktSyncShows
            {
                Shows = new List<TraktShow>() { show }
            };

            return RemoveShowsFromWatchlist(shows);
        }
Пример #7
0
        /// <summary>
        /// UnRate a single show on trakt.tv
        /// </summary>
        public static TraktSyncResponse RemoveShowFromRatings(TraktShow show)
        {
            var shows = new TraktSyncShows
            {
                Shows = new List<TraktShow>() { new TraktShow { Ids = show.Ids } }
            };

            return RemoveShowsFromRatings(shows);
        }
Пример #8
0
        public static TraktSyncResponse RemoveShowFromCollection(TraktShow show)
        {
            var shows = new TraktSyncShows
            {
                Shows = new List<TraktShow>() { show }
            };

            return RemoveShowsFromCollecton(shows);
        }