Esempio n. 1
0
 public ActionCalendarEventCreate(Guid guid, CalendarEvent evt)
 {
     if (evt is null)
     {
         throw new ArgumentNullException(nameof(evt));
     }
     this.guid = guid;
     this.evt  = evt.copy();
 }
Esempio n. 2
0
 public ActionCalendarEventUpdate(Guid guid, CalendarEvent from, CalendarEvent to, bool set_timestamp, bool set_name, bool set_desc, bool set_interval)
 {
     if (from is null)
     {
         throw new ArgumentNullException(nameof(from));
     }
     if (to is null)
     {
         throw new ArgumentNullException(nameof(to));
     }
     if (!(set_timestamp || set_name || set_desc || set_interval))
     {
         throw new ArgumentOutOfRangeException(nameof(set_interval));
     }
     this.guid          = guid;
     this.from          = from.copy();
     this.to            = to.copy();
     this.set_timestamp = set_timestamp;
     this.set_name      = set_name;
     this.set_desc      = set_desc;
     this.set_interval  = set_interval;
 }