Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide

Page of 67
Saving and updating recurrent conferences
The code snippet below demonstrates how to save/update a conference series.
public
 
void
 SaveAndUpdateRecurrentConference()
 
{
 
    InitBookingService();
 
    Conference 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
 
    conference.RecurrencePattern = 
new
 RecurrencePattern
 
    {
 
        FrequencyType = RecurringFrequency.Weekly,
 
        PatternEndType = RecurrenceEndType.EndByInstances,
 
        PatternInstances = 5,
 
    };
 
 
    conference = bookingService.SaveConference(conference);
 
    
 
    PrintConferenceInformation(conference);
 
}
Cisco TMSBA Programming Reference Guide (14.3)
Page 62 of 67
Code examples