Class TicketService
Inheritance
System.Object
    TicketService
  Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class TicketService : Object, ITicketService
  Constructors
TicketService(IApiService)
Declaration
public TicketService(IApiService apiService)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IApiService | apiService | 
Methods
LogEvent(Int32, String, String, String)
Log a message event for specified associateId and adds body message to the note and records username as the user who made the change.
Declaration
public Task<int> LogEvent(int associateId, string message, string body, string username)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | associateId | Associate that event happened to.  | 
      
| System.String | message | What happened to the associate.  | 
      
| System.String | body | Additional details saved in the ticket note.  | 
      
| System.String | username | The user who changed   | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.Int32> | New TicketId.  | 
      
SendNote(String, Int32, String)
Add a note to the specified ticketId and notify to.
Declaration
public Task<int> SendNote(string to, int ticketId, string body)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | to | Person to notify, this can be either an email address to send an email to, or a user name of the user assigned to this ticket.  | 
      
| System.Int32 | ticketId | The ticketId that is being updated with a note.  | 
      
| System.String | body | The content to be added to the ticket.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.Int32> | 
  |