Class TicketAlertHelper
Inherited Members
Namespace: SuperOffice.CRM.Ticket
Assembly: SoDataBase.dll
Syntax
public class TicketAlertHelper
Constructors
TicketAlertHelper()
Declaration
public TicketAlertHelper()
Methods
CheckEscalatingAsync(TicketPriorityEscalateAction, TicketRow, CancellationToken)
Checks and changes alert level, alert timeout This method will check if the ticket should change its alert level based on the priority and action. If it is to change, the alert level and alert timeout for the ticket will be updated.
Declaration
public Task CheckEscalatingAsync(TicketPriorityEscalateAction action, TicketRow ticketRow, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketPriorityEscalateAction | action | The action, which can be read, changed owner or new info |
| TicketRow | ticketRow | Ticket's row object to check escalation for |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
ComputeAlertTimeoutAsync(int, short, int, CancellationToken)
Calculates alert timeout based on ticket priority
Declaration
public Task<DateTime> ComputeAlertTimeoutAsync(int priority, short alertLevel, int alertStop, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | priority | Ticket priority |
| short | alertLevel | Ticket alert level |
| int | alertStop | Ticket alert stop |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<DateTime> | Calculated AlertTimeout |
StopEscalationAsync(TicketRow, CancellationToken)
Stops ticket escalation by reseting alert timeout This method recalculates alert stop and resets alert timeout.
Declaration
public Task StopEscalationAsync(TicketRow ticketRow, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| TicketRow | ticketRow | Ticket's row object to stop escalation for |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |