protected override bool EqualsCore(RecurrenceModel other) { var monthlyRecurrence = other as MonthlyRecurrenceModel; if (monthlyRecurrence != null) { return(Every == monthlyRecurrence.Every && Until == monthlyRecurrence.Until); } else { return(false); } }
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), }); }
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); } }
protected override bool EqualsCore(RecurrenceModel other) { return(other is DailyRecurrenceModel); }