Class NotificationEventHandler
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Namespace: SuperOffice.CRM.Notification
Assembly: SoDataBase.dll
Syntax
public class NotificationEventHandler : Object
Constructors
NotificationEventHandler()
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public NotificationEventHandler()
Properties
SendMessageToOurself
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public bool SendMessageToOurself { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SilentExceptions
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public bool SilentExceptions { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
NotificationHandled(NotificationEventType, Int32, IEnumerable<Int32>)
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public void NotificationHandled(NotificationEventType eventType, int recordId, IEnumerable<int> associateIds = null)
Parameters
Type | Name | Description |
---|---|---|
NotificationEventType | eventType | |
Int32 | recordId | |
IEnumerable<Int32> | associateIds |
NotificationHandled(NotificationEventType, Int32, Int32)
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public void NotificationHandled(NotificationEventType eventType, int recordId, int associateId)
Parameters
Type | Name | Description |
---|---|---|
NotificationEventType | eventType | |
Int32 | recordId | |
Int32 | associateId |
NotifyUser(NotificationEventType, Int32, DateTime, Int32)
Notify a single user about a specific event
Declaration
public void NotifyUser(NotificationEventType eventType, int recordId, DateTime eventDate, int associateId)
Parameters
Type | Name | Description |
---|---|---|
NotificationEventType | eventType | |
Int32 | recordId | |
DateTime | eventDate | |
Int32 | associateId |
NotifyUsers(NotificationEventType, Int32)
Used for events where all meta data can be retrieved from the recordId
Declaration
public void NotifyUsers(NotificationEventType eventType, int recordId)
Parameters
Type | Name | Description |
---|---|---|
NotificationEventType | eventType | |
Int32 | recordId |
NotifyUsers(NotificationEventType, Int32, DateTime, IEnumerable<Int32>, Dictionary<String, String>)
Contains logic for handling notifications to users when certain events happen Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public void NotifyUsers(NotificationEventType eventType, int recordId, DateTime eventDate, IEnumerable<int> associateIds = null, Dictionary<string, string> extraValues = null)
Parameters
Type | Name | Description |
---|---|---|
NotificationEventType | eventType | |
Int32 | recordId | |
DateTime | eventDate | |
IEnumerable<Int32> | associateIds | |
Dictionary<String, String> | extraValues |