* re-namespace * optimize usings * more usings * more of the same * more implicit/global usings * cleanup all usings * minor fixes
18 lines
654 B
C#
18 lines
654 B
C#
using ErsatzTV.Application.ProgramSchedules;
|
|
|
|
namespace ErsatzTV.ViewModels;
|
|
|
|
public class ProgramScheduleEditViewModel
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public bool KeepMultiPartEpisodesTogether { get; set; }
|
|
public bool TreatCollectionsAsShows { get; set; }
|
|
public bool ShuffleScheduleItems { get; set; }
|
|
|
|
public UpdateProgramSchedule ToUpdate() =>
|
|
new(Id, Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems);
|
|
|
|
public CreateProgramSchedule ToCreate() =>
|
|
new(Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems);
|
|
} |