Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

584 B
Raw Blame
using API.Entities.Scrobble;

namespace API.Helpers.Builders;

public class ScrobbleHoldBuilder : IEntityBuilder<ScrobbleHold>
{
    private readonly ScrobbleHold _scrobbleHold;
    public ScrobbleHold Build() => _scrobbleHold;

    public ScrobbleHoldBuilder(ScrobbleHold? hold = null)
    {
        if (hold != null)
        {
            _scrobbleHold = hold;
            return;
        }

        _scrobbleHold = new ScrobbleHold();
    }

    public ScrobbleHoldBuilder WithSeriesId(int seriesId)
    {
        _scrobbleHold.SeriesId = seriesId;
        return this;
    }
}