application: schedule bounded context

This commit is contained in:
2026-07-12 02:02:23 +02:00
parent 6fd47f2d93
commit ef86a967cd
21 changed files with 608 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
use uuid::Uuid;
/// Fetch the schedule whose validity window contains `now`.
pub struct GetActiveScheduleQuery {
pub channel_id: Uuid,
}
/// Determine what is currently broadcasting on a channel.
pub struct GetCurrentBroadcastQuery {
pub channel_id: Uuid,
}
/// Return EPG (electronic program guide) data for a channel.
pub struct GetEpgQuery {
pub channel_id: Uuid,
}
/// Get a playback URL for a specific media item on a channel.
pub struct GetStreamUrlQuery {
pub channel_id: Uuid,
/// MediaItemId as string (e.g. "jellyfin::abc123").
pub item_id: String,
}
/// List all generated schedule headers for a channel.
pub struct ListHistoryQuery {
pub channel_id: Uuid,
}