mirror of https://github.com/ErsatzTV/ErsatzTV.git
47 changed files with 12747 additions and 203 deletions
@ -1,11 +1,11 @@
@@ -1,11 +1,11 @@
|
||||
namespace ErsatzTV.Core.Domain; |
||||
|
||||
public enum ProgramSchedulePlayoutType |
||||
public enum PlayoutScheduleKind |
||||
{ |
||||
None = 0, |
||||
Classic = 1, |
||||
Block = 2, |
||||
Yaml = 3, |
||||
Sequential = 3, |
||||
|
||||
ExternalJson = 20 |
||||
} |
||||
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
namespace ErsatzTV.Core.Interfaces.Scheduling; |
||||
|
||||
public interface IYamlScheduleValidator |
||||
public interface ISequentialScheduleValidator |
||||
{ |
||||
Task<bool> ValidateSchedule(string yaml, bool isImport); |
||||
string ToJson(string yaml); |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Rename_ProgramSchedulePlayoutType_ScheduleKind : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "ProgramSchedulePlayoutType", |
||||
table: "Playout", |
||||
newName: "ScheduleKind"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "ScheduleKind", |
||||
table: "Playout", |
||||
newName: "ProgramSchedulePlayoutType"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Rename_ProgramSchedulePlayoutType_ScheduleKind : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "ProgramSchedulePlayoutType", |
||||
table: "Playout", |
||||
newName: "ScheduleKind"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.RenameColumn( |
||||
name: "ScheduleKind", |
||||
table: "Playout", |
||||
newName: "ProgramSchedulePlayoutType"); |
||||
} |
||||
} |
||||
} |
||||
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
||||
{ |
||||
"$schema": "https://json-schema.org/draft/2020-12/schema", |
||||
"$id": "https://ersatztv.org/yaml-playout.schema.json", |
||||
"title": "YAML Playout Import", |
||||
"description": "An ErsatzTV YAML playout import definition", |
||||
"$id": "https://ersatztv.org/sequential-schedule.schema.json", |
||||
"title": "Sequential Schedule Import", |
||||
"description": "An ErsatzTV sequential schedule import definition", |
||||
"type": "object", |
||||
"properties": { |
||||
"content": { |
||||
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
||||
{ |
||||
"$schema": "https://json-schema.org/draft/2020-12/schema", |
||||
"$id": "https://ersatztv.org/yaml-playout.schema.json", |
||||
"title": "YAML Playout", |
||||
"description": "An ErsatzTV YAML playout definition", |
||||
"$id": "https://ersatztv.org/sequential-schedule.schema.json", |
||||
"title": "Sequential Schedule", |
||||
"description": "An ErsatzTV sequential schedule definition", |
||||
"type": "object", |
||||
"properties": { |
||||
"import": { |
||||
Loading…
Reference in new issue