Ejemplo n.º 1
0
        /// <summary>
        /// Private constructor used by the <see cref="CreateNonRecurringEvent"/> method
        /// </summary>
        /// <param name="created"></param>
        /// <param name="modified"></param>
        /// <param name="sequence"></param>
        /// <param name="subject"></param>
        /// <param name="description"></param>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="isAllDayEvent"></param>
        /// <param name="organizer"></param>
        /// <param name="requiredAttendees"></param>
        /// <param name="optionalAttendees"></param>
        /// <param name="location"></param>
        /// <param name="isDeleted"></param>
        /// <param name="uid"></param>
        /// <param name="domainSpecificEventId"></param>
        private CalendarEvent(
            DateTimeOffset created,
            DateTimeOffset modified,
            int sequence,
            string subject,
            string description,
            DateTimeOffset start,
            DateTimeOffset? end,
            bool isAllDayEvent,
            CalendarEventAttendee organizer,
            List<CalendarEventAttendee> requiredAttendees,
            List<CalendarEventAttendee> optionalAttendees,
            string location,
            bool isDeleted,
            string uid,
            string domainSpecificEventId = null)
        {
            _isAllDayEvent = isAllDayEvent;
            Created = created;
            _domainSpecificEventId = domainSpecificEventId;
            Modified = modified;
            _sequence = sequence;
            _subject = subject;
            _description = description;
            _start = start;
            _end = end;
            _organizer = organizer;
            _requiredAttendees = requiredAttendees;
            _optionalAttendees = optionalAttendees;
            _location = location;
            _uid = uid;
            _isDeleted = isDeleted;

            // Mark the modified bits
            IsDirty = false;
            _createOnSync = false;
            _deleteOnSync = false;
            _unDeleteOnSync = false;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Private constructor used by the <see cref="CreateRecurringEvent"/> method
 /// </summary>
 /// <param name="created"></param>
 /// <param name="modified"></param>
 /// <param name="sequence"></param>
 /// <param name="subject"></param>
 /// <param name="description"></param>
 /// <param name="start"></param>
 /// <param name="end"></param>
 /// <param name="isAllDayEvent"></param>
 /// <param name="organizer"></param>
 /// <param name="requiredAttendees"></param>
 /// <param name="optionalAttendees"></param>
 /// <param name="location"></param>
 /// <param name="isDeleted"></param>
 /// <param name="uid"></param>
 /// <param name="recurrenceId"></param>
 /// <param name="domainSpecificEventId"></param>
 private CalendarEvent(
     DateTimeOffset created,
     DateTimeOffset modified,
     int sequence,
     string subject,
     string description,
     DateTimeOffset start,
     DateTimeOffset? end,
     bool isAllDayEvent,
     CalendarEventAttendee organizer,
     List<CalendarEventAttendee> requiredAttendees,
     List<CalendarEventAttendee> optionalAttendees,
     string location,
     bool isDeleted,
     string uid,
     DateTimeOffset? recurrenceId,
     string domainSpecificEventId = null) :
         this(created,
              modified,
              sequence,
              subject,
              description,
              start,
              end,
              isAllDayEvent,
              organizer,
              requiredAttendees,
              optionalAttendees,
              location,
              isDeleted,
              uid,
              domainSpecificEventId)
 {
     _recurrenceId = recurrenceId;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a non-dirty non-recurring event.
 /// </summary>
 /// <param name="created"></param>
 /// <param name="modified"></param>
 /// <param name="sequence"></param>
 /// <param name="subject"></param>
 /// <param name="description"></param>
 /// <param name="start"></param>
 /// <param name="end"></param>
 /// <param name="isAllDayEvent"></param>
 /// <param name="organizer"></param>
 /// <param name="requiredAttendees"></param>
 /// <param name="optionalAttendees"></param>
 /// <param name="location"></param>
 /// <param name="isDeleted"></param>
 /// <param name="uid"></param>
 /// <param name="domainSpecificEventId"></param>
 /// <returns></returns>
 public static CalendarEvent CreateNonRecurringEvent(
     DateTimeOffset created,
     DateTimeOffset modified,
     int sequence,
     string subject,
     string description,
     DateTimeOffset start,
     DateTimeOffset? end,
     bool isAllDayEvent,
     CalendarEventAttendee organizer,
     List<CalendarEventAttendee> requiredAttendees,
     List<CalendarEventAttendee> optionalAttendees,
     string location,
     bool isDeleted,
     string uid,
     string domainSpecificEventId = null)
 {
     return new CalendarEvent(
         created,
         modified,
         sequence,
         subject,
         description,
         start,
         end,
         isAllDayEvent,
         organizer,
         requiredAttendees,
         optionalAttendees,
         location,
         isDeleted,
         uid,
         domainSpecificEventId);
 }