/// <summary>
 /// Initializes a new instance of the <see cref="CalendarActionResults"/> class.
 /// </summary>
 /// <param name="items">Collection of items that were created or modified as a result of a calendar action.</param>
 internal CalendarActionResults(IEnumerable <Item> items)
 {
     this.appointment         = EwsUtilities.FindFirstItemOfType <Appointment>(items);
     this.meetingRequest      = EwsUtilities.FindFirstItemOfType <MeetingRequest>(items);
     this.meetingResponse     = EwsUtilities.FindFirstItemOfType <MeetingResponse>(items);
     this.meetingCancellation = EwsUtilities.FindFirstItemOfType <MeetingCancellation>(items);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarActionResults"/> class.
 /// </summary>
 /// <param name="items">Collection of items that were created or modified as a result of a calendar action.</param>
 internal CalendarActionResults(IEnumerable<Item> items)
 {
     this.appointment = EwsUtilities.FindFirstItemOfType<Appointment>(items);
     this.meetingRequest = EwsUtilities.FindFirstItemOfType<MeetingRequest>(items);
     this.meetingResponse = EwsUtilities.FindFirstItemOfType<MeetingResponse>(items);
     this.meetingCancellation = EwsUtilities.FindFirstItemOfType<MeetingCancellation>(items);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Binds to an existing meeting response and loads its first class properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the meeting response.</param>
 /// <param name="id">The Id of the meeting response to bind to.</param>
 /// <returns>A MeetingResponse instance representing the meeting response corresponding to the specified Id.</returns>
 public static new MeetingResponse Bind(ExchangeService service, ItemId id)
 {
     return(MeetingResponse.Bind(
                service,
                id,
                PropertySet.FirstClassProperties));
 }