Browse Source

wip

block-scheduling
Jason Dove 2 years ago
parent
commit
a1c163676a
  1. 8
      ErsatzTV.Core/Domain/Scheduling/ChannelPlayout.cs
  2. 16
      ErsatzTV.Core/Domain/Scheduling/ChannelPlayoutItem.cs
  3. 2
      ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItem.cs
  4. 7
      ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItemContentType.cs
  5. 8
      ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItemGuideMode.cs

8
ErsatzTV.Core/Domain/Scheduling/ChannelPlayout.cs

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
namespace ErsatzTV.Core.Domain.Scheduling;
public class ChannelPlayout
{
public int Id { get; set; }
public int ChannelId { get; set; }
public Channel Channel { get; set; }
}

16
ErsatzTV.Core/Domain/Scheduling/ChannelPlayoutItem.cs

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
namespace ErsatzTV.Core.Domain.Scheduling;
public class ChannelPlayoutItem
{
public int Id { get; set; }
public int ChannelPlayoutId { get; set; }
public ChannelPlayout ChannelPlayout { get; set; }
public int MediaItemId { get; set; }
public MediaItem MediaItem { get; set; }
public DateTime Start { get; set; }
public DateTime Finish { get; set; }
public TimeSpan InPoint { get; set; }
public TimeSpan OutPoint { get; set; }
public DateTimeOffset StartOffset => new DateTimeOffset(Start, TimeSpan.Zero).ToLocalTime();
public DateTimeOffset FinishOffset => new DateTimeOffset(Finish, TimeSpan.Zero).ToLocalTime();
}

2
ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItem.cs

@ -6,7 +6,7 @@ public class ScheduleBlockItem @@ -6,7 +6,7 @@ public class ScheduleBlockItem
public int Index { get; set; }
public string Name { get; set; }
public string Query { get; set; }
// public ScheduleBlockItemGuideMode GuideMode { get; set; }
// public ScheduleBlockItemContentType ContentType { get; set; }
// public string CustomTitle { get; set; }
public PlayoutMode PlayoutMode { get; set; }
public PlaybackOrder PlaybackOrder { get; set; }

7
ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItemContentType.cs

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
namespace ErsatzTV.Core.Domain.Scheduling;
public enum ScheduleBlockItemContentType
{
Normal = 0,
Filler = 1
}

8
ErsatzTV.Core/Domain/Scheduling/ScheduleBlockItemGuideMode.cs

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
namespace ErsatzTV.Core.Domain.Scheduling;
public enum ScheduleBlockItemGuideMode
{
Normal = 0,
UsePrevious = 1,
UseNext = 2
}
Loading…
Cancel
Save