protected override bool EqualsCore(RecurrenceModel other)
        {
            var monthlyRecurrence = other as MonthlyRecurrenceModel;

            if (monthlyRecurrence != null)
            {
                return(Every == monthlyRecurrence.Every &&
                       Until == monthlyRecurrence.Until);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        internal static ReminderModel FromData(string reminderData)
        {
            var reminder = Reminder.Load(reminderData);

            if (reminder == null)
            {
                return(null);
            }
            return(new ReminderModel
            {
                DateTime = reminder.DateTime,
                Recurrence = RecurrenceModel.FromData(reminder?.Recurrence),
            });
        }
Example #3
0
        protected override bool EqualsCore(RecurrenceModel other)
        {
            var daysOfWeekRecurrence = other as DaysOfWeekRecurrenceModel;

            if (daysOfWeekRecurrence != null)
            {
                return(Every == daysOfWeekRecurrence.Every &&
                       Until == daysOfWeekRecurrence.Until &&
                       DaysOfWeek == daysOfWeekRecurrence.DaysOfWeek);
            }
            else
            {
                return(false);
            }
        }
Example #4
0
 protected override bool EqualsCore(RecurrenceModel other)
 {
     return(other is DailyRecurrenceModel);
 }