Esempio n. 1
0
 /// <summary>
 /// Binds to an existing meeting request 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 request.</param>
 /// <param name="id">The Id of the meeting request to bind to.</param>
 /// <returns>A MeetingRequest instance representing the meeting request corresponding to the specified Id.</returns>
 public static new MeetingRequest Bind(ExchangeService service, ItemId id)
 {
     return(MeetingRequest.Bind(
                service,
                id,
                PropertySet.FirstClassProperties));
 }
 /// <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);
 }
Esempio n. 4
0
File: Event.cs Progetto: ozgend/hive
 public Event(MeetingRequest m)
 {
     this.Title = m.Subject;
     this.Description = m.Body.Text;
     this.Location = m.Location;
     this.Start = m.Start;
     this.End = m.End;
     this.Type = m.GetType().Name;
     this.Invited = GetPersons(m);
     this.MyResponse = m.MyResponseType.ToString();
     this.Id = m.Id.UniqueId;
     this.ResponseRequired = m.MyResponseType == MeetingResponseType.NoResponseReceived;
 }
Esempio n. 5
0
File: Event.cs Progetto: ozgend/hive
 private List<Person> GetPersons(MeetingRequest m)
 {
     List<Person> list = new List<Person>();
     List<Attendee> all = new List<Attendee>(m.RequiredAttendees);
     all.AddRange(m.OptionalAttendees);
     foreach (Attendee at in all)
     {
         list.Add(new Person(at));
     }
     return list;
 }