feat: add ad and moderator placeholder content
Add AdSpot and ModeratorSegment models with Title and Duration and a read-only in-memory seed list for each in PlaceholderContent. Ads and moderator talk are placeholders without audio, so no database table is needed. Lengths vary (ads 30 s to 2 min, moderator 30 s to 3 min) so the schedule generator can size these segments to end songs exactly before the news. Tests check the lists are non-empty with titles and positive durations. Refs #7 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
89b7959404
commit
2241c57203
4 files changed
+63
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using Radiosender.Models;
|
||||
|
||||
namespace Radiosender.Services;
|
||||
|
||||
// In-memory seed data; varied lengths let the schedule generator fill gaps before the news.
|
||||
public static class PlaceholderContent
|
||||
{
|
||||
public static IReadOnlyList<AdSpot> AdSpots { get; } =
|
||||
[
|
||||
new("Bakery Sonnenschein", TimeSpan.FromSeconds(30)),
|
||||
new("Autohaus Berger", TimeSpan.FromSeconds(45)),
|
||||
new("Stadtwerke Energy Tips", TimeSpan.FromSeconds(60)),
|
||||
new("Furniture Outlet Sale", TimeSpan.FromSeconds(75)),
|
||||
new("Regional Bank Savings", TimeSpan.FromSeconds(90)),
|
||||
new("Summer Festival Preview", TimeSpan.FromMinutes(2)),
|
||||
];
|
||||
|
||||
public static IReadOnlyList<ModeratorSegment> ModeratorSegments { get; } =
|
||||
[
|
||||
new("Station ID", TimeSpan.FromSeconds(30)),
|
||||
new("Weather Update", TimeSpan.FromSeconds(60)),
|
||||
new("Traffic Report", TimeSpan.FromSeconds(90)),
|
||||
new("Song Introduction", TimeSpan.FromMinutes(2)),
|
||||
new("Local Events", TimeSpan.FromSeconds(150)),
|
||||
new("Listener Greetings", TimeSpan.FromMinutes(3)),
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user