iCalendar import: parse_ical + API + MCP tool (#16)
This commit is contained in:
@@ -377,6 +377,28 @@ impl ProgrammingBlock {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_parts(
|
||||
id: BlockId,
|
||||
name: impl Into<String>,
|
||||
start_time: NaiveTime,
|
||||
duration_mins: u32,
|
||||
content: BlockContent,
|
||||
interstitial_rule: Option<InterstitialRule>,
|
||||
mid_roll_rule: Option<MidRollRule>,
|
||||
) -> Self {
|
||||
Self {
|
||||
id,
|
||||
name: name.into(),
|
||||
start_time,
|
||||
duration_mins,
|
||||
content,
|
||||
loop_on_finish: true,
|
||||
ignore_rotation_policy: false,
|
||||
interstitial_rule,
|
||||
mid_roll_rule,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_manual(
|
||||
name: impl Into<String>,
|
||||
start_time: NaiveTime,
|
||||
|
||||
Reference in New Issue
Block a user