1 - Properties
Top
1.1 - NullDate
As an alternative to
null for non-nullable DateTime fields, this is set to the date
1/1/2001.
Top
2 - Objects
Top
3 - Methods
Top
3.1 - New
Enters a new
ticket.
- Inputs: string title, string details, int priority, int assigned_to, user u, IEnumerable<FileStream> attachments, string attachmentFolder
- Returns: void
Top
3.2 - Get
Gets a
ticket base on the ticket
id, returns
null if they are not in the table.
- Inputs: int id
- Returns: ticket
Top
3.3 - Update
Updates a
ticket changing the piority, status and assignment; this is generally only called from a
comment update.
- Inputs: int ticket_id, int status, int priority_id, int assigned_to
- Returns: void
- Notes:
Top
3.4 - Email.New
Adds a new
ticket with input available from an email, there is also a more comprehensive overload available.
- Inputs: string senders_email, string mailbox_email*, string title, string details, IEnumerable<FileStream> attachments, string attachmentFolder
- Returns: bool
- Notes:
- Returns true if successful, false if not.
- Will attempt to make a new user if the email is not recognized.
- On error, records an error.
- If the mailbox_email is null or not in the Mailboxes table, it will default to the lowest permission sub_unit in the system.