Class AppointmentPushNotificationTask
A batch of Mobile push notifications to send for a single appointment save/delete, queued for background processing so the originating save/delete request does not have to wait for the (potentially slow) external Central Services calls to complete.
Inherited Members
Namespace: SuperOffice.CRM.Notification
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public sealed class AppointmentPushNotificationTask
Remarks
Built synchronously from the live appointment matrix in AppointmentMatrix (the matrix is cleared right after notifications are triggered, so the recipients must be snapshotted before enqueueing), and processed by AppointmentPushNotificationDispatcher. The current tenant and user are captured by the queue on enqueue and re-established before processing.
Constructors
AppointmentPushNotificationTask()
A batch of Mobile push notifications to send for a single appointment save/delete, queued for background processing so the originating save/delete request does not have to wait for the (potentially slow) external Central Services calls to complete.
Declaration
public AppointmentPushNotificationTask()
Remarks
Built synchronously from the live appointment matrix in AppointmentMatrix (the matrix is cleared right after notifications are triggered, so the recipients must be snapshotted before enqueueing), and processed by AppointmentPushNotificationDispatcher. The current tenant and user are captured by the queue on enqueue and re-established before processing.
Properties
Recipients
One entry per recipient that should receive a push notification.
Declaration
public IReadOnlyList<AppointmentPushNotificationRecipient> Recipients { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<AppointmentPushNotificationRecipient> |
Remarks
Built synchronously from the live appointment matrix in AppointmentMatrix (the matrix is cleared right after notifications are triggered, so the recipients must be snapshotted before enqueueing), and processed by AppointmentPushNotificationDispatcher. The current tenant and user are captured by the queue on enqueue and re-established before processing.
SendMessageToOurself
Mirrors SendPushMessageToOurself at the time the appointment was saved: whether the saving user should also be notified.
Declaration
public bool SendMessageToOurself { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Built synchronously from the live appointment matrix in AppointmentMatrix (the matrix is cleared right after notifications are triggered, so the recipients must be snapshotted before enqueueing), and processed by AppointmentPushNotificationDispatcher. The current tenant and user are captured by the queue on enqueue and re-established before processing.