From eaec859e3b77f02b5f7bd5e4f2b3d6c0cdbe9bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Mon, 30 Sep 2019 11:34:20 +0800 Subject: Ticket history structure and its related enumerations --- rtclient/ticket.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/rtclient/ticket.h b/rtclient/ticket.h index 44d2245..f4e9d5f 100644 --- a/rtclient/ticket.h +++ b/rtclient/ticket.h @@ -11,6 +11,37 @@ struct rtclient_ticket_list { struct rtclient_ticket *tickets[]; }; +enum rtclient_ticket_history_type { + RTCLIENT_TICKET_HISTORY_TYPE_CREATE + , RTCLIENT_TICKET_HISTORY_TYPE_EMAILRECORD + , RTCLIENT_TICKET_HISTORY_TYPE_SET + , RTCLIENT_TICKET_HISTORY_TYPE_SETWATCHER + , RTCLIENT_TICKET_HISTORY_TYPE_STATUS +}; + +enum rtclient_ticket_history_field { + RTCLIENT_TICKET_HISTORY_FIELD_NONE + , RTCLIENT_TICKET_HISTORY_FIELD_PRIORITY + , RTCLIENT_TICKET_HISTORY_FIELD_STATUS + , RTCLIENT_TICKET_HISTORY_FIELD_OWNER +}; + +struct rtclient_ticket_history { + unsigned int id; + unsigned int ticket; + unsigned int time_taken; + enum rtclient_ticket_history_type type; + enum rtclient_ticket_history_field field; + const char *old_value; + const char *new_value; + const char *data; + const char *description; + const char *content; + const char *creator; + struct tm *created; + const char *attachments; +}; + #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3