예제 #1
0
        private TUISchedule CombineTuiSchedule(TUISchedule schedule, JsonElement changes)
        {
            var c = JsonSerializer.Deserialize <TUISchedule>(changes.ToString());

            CopyValues(schedule, c);
            return(schedule);
        }
예제 #2
0
 /// <summary>
 /// Call when an updated schedule has been returned from the calendar
 /// </summary>
 /// <param name="scheduleToModify">Current Schedule Object</param>
 /// <param name="changedSchedule">The changes made to the schedule</param>
 /// <returns>The changed schedule ready to further processing and/or saving</returns>
 public TUISchedule UpdateSchedule(TUISchedule scheduleToModify, JsonElement changedSchedule)
 {
     return(CombineTuiSchedule(scheduleToModify, changedSchedule));
 }