21 lines
775 B
C#
21 lines
775 B
C#
using ErsatzTV.Application.ProgramSchedules.Commands;
|
|
using ErsatzTV.Core.Domain;
|
|
|
|
namespace ErsatzTV.ViewModels
|
|
{
|
|
public class ProgramScheduleEditViewModel
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public PlaybackOrder MediaCollectionPlaybackOrder { get; set; }
|
|
public bool KeepMultiPartEpisodesTogether { get; set; }
|
|
public bool TreatCollectionsAsShows { get; set; }
|
|
|
|
public UpdateProgramSchedule ToUpdate() =>
|
|
new(Id, Name, MediaCollectionPlaybackOrder, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
|
|
|
public CreateProgramSchedule ToCreate() =>
|
|
new(Name, MediaCollectionPlaybackOrder, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
|
}
|
|
}
|