using ErsatzTV.Application.MediaCollections;
using ErsatzTV.Core.Domain;

namespace ErsatzTV.ViewModels;

public class MultiCollectionSmartItemEditViewModel : MultiCollectionItemEditViewModel
{
    private SmartCollectionViewModel _smartCollection;

    public SmartCollectionViewModel SmartCollection
    {
        get => _smartCollection;
        set
        {
            _smartCollection = value;

            Collection = new MediaCollectionViewModel(
                ProgramScheduleItemCollectionType.SmartCollection,
                _smartCollection.Id,
                _smartCollection.Name,
                false,
                MediaItemState.Normal);
        }
    }

    public override MediaCollectionViewModel Collection { get; set; }
}
