* start to add multi-collections * create multi collection with no items * edit multi collections * fix plex credentials threading issue * add playback order to multi collection items * group episodes outside of shuffled enumerator * move playback order onto each schedule item * fix multi collection grouping * update changelog
20 lines
643 B
C#
20 lines
643 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 bool KeepMultiPartEpisodesTogether { get; set; }
|
|
public bool TreatCollectionsAsShows { get; set; }
|
|
|
|
public UpdateProgramSchedule ToUpdate() =>
|
|
new(Id, Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
|
|
|
public CreateProgramSchedule ToCreate() =>
|
|
new(Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows);
|
|
}
|
|
}
|