Class NotificationService
Inheritance
System.Object
NotificationService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class NotificationService : Object, INotificationService
Constructors
NotificationService(IApiService)
Declaration
public NotificationService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService |
Methods
GetNotificationEvents(DateTime, DateTime, Int32)
Gets events that have occurred for associateId
between beginDate
and endDate
.
Declaration
public Task<NotificationEvent[]> GetNotificationEvents(DateTime beginDate, DateTime endDate, int associateId)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | beginDate | Date range bein. |
System.DateTime | endDate | Date range end. |
System.Int32 | associateId | Associate. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<NotificationEvent[]> | Events that occurred for associate in specified date range. |
LogNotificationEvent(NotificationEvent)
Log a new event that has occurred for an associate.
Declaration
public Task LogNotificationEvent(NotificationEvent notification)
Parameters
Type | Name | Description |
---|---|---|
NotificationEvent | notification | The details of the event that occurred. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Depending on additional settings, emails, texts, and backoffice notifications may occur for this associate and their enroller.