Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Post builder: ITraktSyncRatingsRemovePostBuilder #327

Closed
Tracked by #346 ...
henrikfroehling opened this issue Sep 25, 2022 · 0 comments · Fixed by #347
Closed
Tracked by #346 ...

New Post builder: ITraktSyncRatingsRemovePostBuilder #327

henrikfroehling opened this issue Sep 25, 2022 · 0 comments · Fixed by #347

Comments

@henrikfroehling
Copy link
Owner

henrikfroehling commented Sep 25, 2022

Sync: Remove ratings

API Reference

API:

public sealed class PostEpisode
{
    public PostEpisode(int number);
}

public sealed class PostEpisodes : IEnumerable<PostEpisode>
{
    public PostEpisodes();

    public void Add(int episodeNumber);
    public void Add(PostEpisode episode, params PostEpisode[] episodes);
}

public sealed class PostSeason
{
    public PostSeason(int number);
    public PostSeason(int number, PostEpisodes episodes);
}

public sealed class PostSeasons : IEnumerable<PostSeason>
{
    public PostSeasons();

    public void Add(int seasonNumber);
    public void Add(int seasonNumber, PostEpisodes episodes);
    public void Add(PostSeason season, params PostSeason[] seasons);
}

public interface ITraktSyncRatingsRemovePostBuilder
{
    ITraktSyncRatingsRemovePostBuilder WithMovie(ITraktMovie movie);
    ITraktSyncRatingsRemovePostBuilder WithMovie(ITraktMovieIds movieIds);

    ITraktSyncRatingsRemovePostBuilder WithMovies(IEnumerable<ITraktMovie> movies);
    ITraktSyncRatingsRemovePostBuilder WithMovies(IEnumerable<ITraktMovieIds> movieIds);

    ITraktSyncRatingsRemovePostBuilder WithShow(ITraktShow show);
    ITraktSyncRatingsRemovePostBuilder WithShow(ITraktShowIds showIds);

    ITraktSyncRatingsRemovePostBuilder WithShows(IEnumerable<ITraktShow> shows);
    ITraktSyncRatingsRemovePostBuilder WithShows(IEnumerable<ITraktShowIds> showIds);

    ITraktSyncRatingsRemovePostBuilder WithShowAndSeasons(ITraktShow show, PostSeasons seasons);
    ITraktSyncRatingsRemovePostBuilder WithShowAndSeasons(ITraktShowIds showIds, PostSeasons seasons);

    ITraktSyncRatingsRemovePostBuilder WithShowsAndSeasons(IEnumerable<Tuple<ITraktShow, PostSeasons>> showsAndSeasons);
    ITraktSyncRatingsRemovePostBuilder WithShowsAndSeasons(IEnumerable<Tuple<ITraktShowIds, PostSeasons>> showIdsAndSeasons);

    ITraktSyncRatingsRemovePostBuilder WithSeason(ITraktSeason season);
    ITraktSyncRatingsRemovePostBuilder WithSeason(ITraktSeasonIds seasonIds);

    ITraktSyncRatingsRemovePostBuilder WithSeasons(IEnumerable<ITraktSeason> seasons);
    ITraktSyncRatingsRemovePostBuilder WithSeasons(IEnumerable<ITraktSeasonIds> seasonIds);

    ITraktSyncRatingsRemovePostBuilder WithEpisode(ITraktEpisode episode);
    ITraktSyncRatingsRemovePostBuilder WithEpisode(ITraktEpisodeIds episodeIds);

    ITraktSyncRatingsRemovePostBuilder WithEpisodes(IEnumerable<ITraktEpisode> episodes);
    ITraktSyncRatingsRemovePostBuilder WithEpisodes(IEnumerable<ITraktEpisodeIds> episodeIds);

    ITraktSyncRatingsRemovePost Build();
}
@henrikfroehling henrikfroehling added this to the Version 1.3.0 milestone Sep 25, 2022
@henrikfroehling henrikfroehling self-assigned this Sep 25, 2022
@henrikfroehling henrikfroehling moved this to New in Trakt.NET Sep 25, 2022
@henrikfroehling henrikfroehling moved this from New to Open in Trakt.NET Sep 25, 2022
@henrikfroehling henrikfroehling changed the title Post builder refactoring: ITraktSyncRatingsRemovePostBuilder New Post builder: ITraktSyncRatingsRemovePostBuilder Oct 7, 2022
@henrikfroehling henrikfroehling moved this from Open to In Progress in Trakt.NET Oct 16, 2022
@henrikfroehling henrikfroehling linked a pull request Oct 16, 2022 that will close this issue
9 tasks
@henrikfroehling henrikfroehling moved this from In Progress to Done in Trakt.NET Oct 17, 2022
Repository owner moved this from Done to Closed in Trakt.NET Oct 17, 2022
@henrikfroehling henrikfroehling moved this from Closed to Done in Trakt.NET Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant