Skip to content

Commit

Permalink
Merge pull request #435 from henrikfroehling/issue/release-1.4.0/GH-375
Browse files Browse the repository at this point in the history
Resolves GH-375
  • Loading branch information
henrikfroehling authored Apr 2, 2023
2 parents a9373b1 + 386f736 commit 6873cc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Source/Lib/Trakt.NET/Modules/TraktSyncModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ public Task<TraktResponse<ITraktSyncRatingsPostResponse>> AddRatingsAsync(ITrakt
/// See <a href="http://docs.trakt.apiary.io/#reference/sync/remove-ratings/remove-ratings">"Trakt API Doc - Sync: Remove Ratings"</a> for more information.
/// </para>
/// <para>
/// It is recommended to use the <see cref="ITraktSyncRatingsPostBuilder" /> to create an instance
/// of the required <see cref="ITraktSyncRatingsPost" />.
/// See also <seealso cref="TraktPost.NewSyncRatingsPost()" />.
/// It is recommended to use the <see cref="ITraktSyncRatingsRemovePostBuilder" /> to create an instance
/// of the required <see cref="ITraktSyncRatingsRemovePost" />.
/// See also <seealso cref="TraktPost.NewSyncRatingsRemovePost()" />.
/// </para>
/// </summary>
/// <param name="ratingsRemovePost">An <see cref="ITraktSyncRatingsPost" /> instance containing all shows, seasons, episodes and movies, which should be removed.</param>
/// <param name="ratingsRemovePost">An <see cref="ITraktSyncRatingsRemovePost" /> instance containing all shows, seasons, episodes and movies, which should be removed.</param>
/// <param name="cancellationToken">
/// Propagates notification that the request should be canceled.<para/>
/// If provided, the exception <see cref="OperationCanceledException" /> should be catched.
Expand All @@ -593,7 +593,7 @@ public Task<TraktResponse<ITraktSyncRatingsPostResponse>> AddRatingsAsync(ITrakt
/// <exception cref="TraktException">Thrown, if the request fails.</exception>
/// <exception cref="TraktPostValidationException">Thrown, if validation of post data fails.</exception>
/// <exception cref="TraktRequestValidationException">Thrown, if validation of request data fails.</exception>
public Task<TraktResponse<ITraktSyncRatingsRemovePostResponse>> RemoveRatingsAsync(ITraktSyncRatingsPost ratingsRemovePost,
public Task<TraktResponse<ITraktSyncRatingsRemovePostResponse>> RemoveRatingsAsync(ITraktSyncRatingsRemovePost ratingsRemovePost,
CancellationToken cancellationToken = default)
{
var requestHandler = new RequestHandler(Client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Objects.Post.Syncs.Ratings;
using Objects.Post.Syncs.Ratings.Responses;

internal sealed class SyncRatingsRemoveRequest : ASyncPostRequest<ITraktSyncRatingsRemovePostResponse, ITraktSyncRatingsPost>
internal sealed class SyncRatingsRemoveRequest : ASyncPostRequest<ITraktSyncRatingsRemovePostResponse, ITraktSyncRatingsRemovePost>
{
public override string UriTemplate => "sync/ratings/remove";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class TraktSyncModule_Tests
private ITraktSyncHistoryPost AddHistoryPost { get; }
private ITraktSyncWatchlistPost AddWatchlistPost { get; }
private ITraktSyncCollectionRemovePost RemoveCollectionItemsPost { get; }
private ITraktSyncRatingsPost RemoveRatingsPost { get; }
private ITraktSyncRatingsRemovePost RemoveRatingsPost { get; }
private ITraktSyncHistoryRemovePost RemoveHistoryPost { get; }
private ITraktSyncWatchlistPost RemoveWatchlistPost { get; }

Expand Down Expand Up @@ -675,9 +675,9 @@ private ITraktSyncCollectionRemovePost SetupRemoveCollectionItemsPost()
};
}

private ITraktSyncRatingsPost SetupRemoveRatingsPost()
private ITraktSyncRatingsRemovePost SetupRemoveRatingsPost()
{
return new TraktSyncRatingsPost
return new TraktSyncRatingsRemovePost
{
Movies = new List<ITraktSyncRatingsPostMovie>()
{
Expand Down

0 comments on commit 6873cc6

Please sign in to comment.