refactor(application): strip comments, DRY ownership check + parse_content_type
This commit is contained in:
@@ -1,28 +1,22 @@
|
||||
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