mirror of https://github.com/ErsatzTV/ErsatzTV.git
47 changed files with 12747 additions and 203 deletions
@ -1,11 +1,11 @@ |
|||||||
namespace ErsatzTV.Core.Domain; |
namespace ErsatzTV.Core.Domain; |
||||||
|
|
||||||
public enum ProgramSchedulePlayoutType |
public enum PlayoutScheduleKind |
||||||
{ |
{ |
||||||
None = 0, |
None = 0, |
||||||
Classic = 1, |
Classic = 1, |
||||||
Block = 2, |
Block = 2, |
||||||
Yaml = 3, |
Sequential = 3, |
||||||
|
|
||||||
ExternalJson = 20 |
ExternalJson = 20 |
||||||
} |
} |
||||||
@ -1,6 +1,6 @@ |
|||||||
namespace ErsatzTV.Core.Interfaces.Scheduling; |
namespace ErsatzTV.Core.Interfaces.Scheduling; |
||||||
|
|
||||||
public interface IYamlScheduleValidator |
public interface ISequentialScheduleValidator |
||||||
{ |
{ |
||||||
Task<bool> ValidateSchedule(string yaml, bool isImport); |
Task<bool> ValidateSchedule(string yaml, bool isImport); |
||||||
string ToJson(string yaml); |
string ToJson(string yaml); |
||||||
File diff suppressed because it is too large
Load Diff
@ -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 @@ |
|||||||
|
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 @@ |
|||||||
{ |
{ |
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema", |
"$schema": "https://json-schema.org/draft/2020-12/schema", |
||||||
"$id": "https://ersatztv.org/yaml-playout.schema.json", |
"$id": "https://ersatztv.org/sequential-schedule.schema.json", |
||||||
"title": "YAML Playout Import", |
"title": "Sequential Schedule Import", |
||||||
"description": "An ErsatzTV YAML playout import definition", |
"description": "An ErsatzTV sequential schedule import definition", |
||||||
"type": "object", |
"type": "object", |
||||||
"properties": { |
"properties": { |
||||||
"content": { |
"content": { |
||||||
@ -1,8 +1,8 @@ |
|||||||
{ |
{ |
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema", |
"$schema": "https://json-schema.org/draft/2020-12/schema", |
||||||
"$id": "https://ersatztv.org/yaml-playout.schema.json", |
"$id": "https://ersatztv.org/sequential-schedule.schema.json", |
||||||
"title": "YAML Playout", |
"title": "Sequential Schedule", |
||||||
"description": "An ErsatzTV YAML playout definition", |
"description": "An ErsatzTV sequential schedule definition", |
||||||
"type": "object", |
"type": "object", |
||||||
"properties": { |
"properties": { |
||||||
"import": { |
"import": { |
||||||
Loading…
Reference in new issue