26 lines
705 B
Rust
26 lines
705 B
Rust
use domain::models::ScheduleConfig;
|
|
use domain::value_objects::{ChannelId, MediaFilter, RotationPolicy, UserId};
|
|
|
|
pub struct CreateChannelCommand {
|
|
pub owner_id: UserId,
|
|
pub name: String,
|
|
pub timezone: String,
|
|
}
|
|
|
|
pub struct UpdateChannelCommand {
|
|
pub channel_id: ChannelId,
|
|
pub owner_id: UserId,
|
|
pub name: Option<String>,
|
|
pub description: Option<Option<String>>,
|
|
pub timezone: Option<String>,
|
|
pub schedule_config: Option<ScheduleConfig>,
|
|
pub rotation_policy: Option<RotationPolicy>,
|
|
pub auto_schedule: Option<bool>,
|
|
pub gap_filler: Option<Option<MediaFilter>>,
|
|
}
|
|
|
|
pub struct DeleteChannelCommand {
|
|
pub channel_id: ChannelId,
|
|
pub owner_id: UserId,
|
|
}
|