Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide
conflictingConference = bookingService.SaveConference(conflictingConference);
// Create a daily, recurrent conference, which will conflict on instance number 2 (tomorrow)
var
conference = bookingService.GetDefaultConference();
conference.StartTimeUTC = start.ToString(
"u"
);
conference.EndTimeUTC = end.ToString(
"u"
);
conference.Participants =
new
[] { conflictingParticipant };
conference.RecurrencePattern =
new
RecurrencePattern
{
FrequencyType = RecurringFrequency.Daily,
PatternEndType = RecurrenceEndType.EndByInstances,
PatternInstances = 3,
Interval = 1,
};
// This save invocation will result in the 2nd instance in the recurrent series being defective
// The returned conference will be marked with ConferenceState == Defective if > 0 instances are
defective in the series:
var
savedConferenceResult = bookingService.SaveConferenceWithMode(conference,
BookingMode.BestEffortForced);
var
savedConference = bookingService.GetRecurrentConferenceById
(savedConferenceResult.Conference.ConferenceId);
Assert.That(savedConference.ConferenceState.Status, Is.EqualTo(ConferenceStatus.Defective));
PrintConferenceInformation(conflictingConference);
}
Saving and Updating Recurrent Conferences
The code snippet below demonstrates how to save/update a conference series.
public
void
SaveAndUpdateRecurrentConference()
{
InitBookingService();
var
conference = bookingService.GetDefaultConference();
// Set the conference to start in the future (default is now)
var
start = DateTime.Now.AddHours(1);
var
end = start.AddMinutes(10);
conference.StartTimeUTC = start.ToString(
"u"
);
conference.EndTimeUTC = end.ToString(
"u"
);
conference.Participants =
new
[]
{
new
Participant{ParticipantCallType = ParticipantType.SIP, NameOrNumber =
"Sip dial-in 1"
},
new
Participant{ParticipantCallType = ParticipantType.SIP, NameOrNumber =
"Sip dial-in 2"
}
};
// setup the recurrence pattern
conference.RecurrencePattern =
new
RecurrencePattern
{
FrequencyType = RecurringFrequency.Daily,
PatternEndType = RecurrenceEndType.EndByInstances,
PatternInstances = 10,
};
// Save the conference, saving the returned conference (where all values are now specified)
conference = bookingService.SaveConference(conference);
// update the conference, change the pattern from Daily to Weekly and change from 10 instances to 5
59
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide