* rename collection type * split collections into separate pages * add rerun collection types, migration, editor * add rerun to classic schedule items * rerun plumbing in classic playout builder * start to implement rerun enumerator * add scheduledAt to enumerator movenext * maintain rerun history in db * fix shuffle * fix rerun allowed playback orders * fix updating rerun collections * update changelog; fix editing * update changelog
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using ErsatzTV.Application.MediaCollections;
|
|
using ErsatzTV.Application.MediaItems;
|
|
using ErsatzTV.Core.Domain;
|
|
|
|
namespace ErsatzTV.ViewModels;
|
|
|
|
public class RerunCollectionEditViewModel
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public CollectionType CollectionType { get; set; }
|
|
public MediaCollectionViewModel Collection { get; set; }
|
|
public MultiCollectionViewModel MultiCollection { get; set; }
|
|
public SmartCollectionViewModel SmartCollection { get; set; }
|
|
public NamedMediaItemViewModel MediaItem { get; set; }
|
|
public PlaybackOrder FirstRunPlaybackOrder { get; set; }
|
|
public PlaybackOrder RerunPlaybackOrder { get; set; }
|
|
|
|
public UpdateRerunCollection ToUpdate() => new(
|
|
Id,
|
|
Name,
|
|
CollectionType,
|
|
Collection,
|
|
MultiCollection,
|
|
SmartCollection,
|
|
MediaItem,
|
|
FirstRunPlaybackOrder,
|
|
RerunPlaybackOrder);
|
|
|
|
public CreateRerunCollection ToCreate() => new(
|
|
Name,
|
|
CollectionType,
|
|
Collection,
|
|
MultiCollection,
|
|
SmartCollection,
|
|
MediaItem,
|
|
FirstRunPlaybackOrder,
|
|
RerunPlaybackOrder);
|
|
}
|