/// <summary> /// Rates a list of shows on trakt /// </summary> /// <param name="data">The object containing the list of shows to be rated</param> /// <returns>The response from trakt</returns> public static TraktSyncResponse AddShowsToRatings(TraktShowRatingSync data) { // check that we have everything we need if (data == null || data.shows == null || data.shows.Count == 0) { return(null); } // serialize data to JSON and send to server string response = TraktWeb.PostToTrakt(TraktURIs.SyncRatings, data.ToJSON()); // return success or failure return(response.FromJSON <TraktSyncResponse>()); }
/// <summary> /// Rates a list of shows on trakt /// </summary> /// <param name="data">The object containing the list of shows to be rated</param> /// <returns>The response from trakt</returns> public static TraktSyncResponse AddShowsToRatings(TraktShowRatingSync data) { // check that we have everything we need if (data == null || data.shows == null || data.shows.Count == 0) return null; // serialize data to JSON and send to server string response = TraktWeb.PostToTrakt(TraktURIs.SyncRatings, data.ToJSON()); // return success or failure return response.FromJSON<TraktSyncResponse>(); }