Struct ReminderUpdate
Represents the result of querying a reminder's count. If ErrorName is set, CurrentCount should be ignored.
public record struct ReminderUpdate : IEquatable<ReminderUpdate>
- Implements
- Inherited Members
Constructors
ReminderUpdate(IReminder, int, string?, string?)
Represents the result of querying a reminder's count. If ErrorName is set, CurrentCount should be ignored.
public ReminderUpdate(IReminder Reminder, int CurrentCount, string? ErrorName = null, string? ErrorDetail = null)
Parameters
Properties
CurrentCount
public int CurrentCount { readonly get; set; }
Property Value
ErrorDetail
public string? ErrorDetail { readonly get; set; }
Property Value
ErrorName
public string? ErrorName { readonly get; set; }
Property Value
Reminder
public IReminder Reminder { readonly get; set; }
Property Value
Methods
FromError(IReminder, Exception)
public static ReminderUpdate FromError(IReminder reminder, Exception ex)
Parameters
Returns
NotFound(IReminder)
public static ReminderUpdate NotFound(IReminder reminder)
Parameters
reminderIReminder