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.

508 B
Raw Blame
using API.Entities;

namespace API.Helpers.Builders;

public class ReadingListItemBuilder : IEntityBuilder<ReadingListItem>
{
    private readonly ReadingListItem _item;
    public ReadingListItem Build() => _item;

    public ReadingListItemBuilder(int index, int seriesId, int volumeId, int chapterId)
    {
        _item = new ReadingListItem()
        {
            Order = index,
            ChapterId = chapterId,
            SeriesId = seriesId,
            VolumeId = volumeId
        };

    }
}