Skip to content

Commit

Permalink
GH-374: Use ITraktSyncCollectionRemovePost instead of `ITraktSyncCo…
Browse files Browse the repository at this point in the history
…llectionPost`
  • Loading branch information
henrikfroehling authored Apr 2, 2023
1 parent 6a8be9c commit 2755acd
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 @@ -297,12 +297,12 @@ public Task<TraktResponse<ITraktSyncCollectionPostResponse>> AddCollectionItemsA
/// See <a href="http://docs.trakt.apiary.io/#reference/sync/remove-from-collection/remove-items-from-collection">"Trakt API Doc - Sync: Remove from Collection"</a> for more information.
/// </para>
/// <para>
/// It is recommended to use the <see cref="ITraktSyncCollectionPostBuilder" /> to create an instance
/// of the required <see cref="ITraktSyncCollectionPost" />.
/// See also <seealso cref="TraktPost.NewSyncCollectionPost()" />.
/// It is recommended to use the <see cref="ITraktSyncCollectionRemovePostBuilder" /> to create an instance
/// of the required <see cref="ITraktSyncCollectionRemovePost" />.
/// See also <seealso cref="TraktPost.NewSyncCollectionRemovePost()" />.
/// </para>
/// </summary>
/// <param name="collectionRemovePost">An <see cref="ITraktSyncCollectionPost" /> instance containing all shows, seasons, episodes and movies, which should be removed.</param>
/// <param name="collectionRemovePost">An <see cref="ITraktSyncCollectionRemovePost" /> 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 @@ -311,7 +311,7 @@ public Task<TraktResponse<ITraktSyncCollectionPostResponse>> AddCollectionItemsA
/// <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<ITraktSyncCollectionRemovePostResponse>> RemoveCollectionItemsAsync(ITraktSyncCollectionPost collectionRemovePost,
public Task<TraktResponse<ITraktSyncCollectionRemovePostResponse>> RemoveCollectionItemsAsync(ITraktSyncCollectionRemovePost collectionRemovePost,
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.Collection;
using Objects.Post.Syncs.Collection.Responses;

internal sealed class SyncCollectionRemoveRequest : ASyncPostRequest<ITraktSyncCollectionRemovePostResponse, ITraktSyncCollectionPost>
internal sealed class SyncCollectionRemoveRequest : ASyncPostRequest<ITraktSyncCollectionRemovePostResponse, ITraktSyncCollectionRemovePost>
{
public override string UriTemplate => "sync/collection/remove";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public partial class TraktSyncModule_Tests
private ITraktSyncRecommendationsPost RecommendationsPost { get; }
private ITraktSyncHistoryPost AddHistoryPost { get; }
private ITraktSyncWatchlistPost AddWatchlistPost { get; }
private ITraktSyncCollectionPost RemoveCollectionItemsPost { get; }
private ITraktSyncCollectionRemovePost RemoveCollectionItemsPost { get; }
private ITraktSyncRatingsPost RemoveRatingsPost { get; }
private ITraktSyncHistoryRemovePost RemoveHistoryPost { get; }
private ITraktSyncWatchlistPost RemoveWatchlistPost { get; }
Expand Down Expand Up @@ -561,9 +561,9 @@ private ITraktSyncWatchlistPost SetupAddWatchlistPost()
};
}

private ITraktSyncCollectionPost SetupRemoveCollectionItemsPost()
private ITraktSyncCollectionRemovePost SetupRemoveCollectionItemsPost()
{
return new TraktSyncCollectionPost
return new TraktSyncCollectionRemovePost
{
Movies = new List<ITraktSyncCollectionPostMovie>()
{
Expand Down

0 comments on commit 2755acd

Please sign in to comment.