application: schedule bounded context
This commit is contained in:
28
crates/application/src/schedule/queries.rs
Normal file
28
crates/application/src/schedule/queries.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user