public bool confirmEvent(Event e, string body, string sign) { EnqueueTicketResponse enqueueResponse = null; try { EnqueueTicketRequest req = new EnqueueTicketRequest(authToken, e.document_id, body, sign); enqueueResponse = (EnqueueTicketResponse)Http2.post <EnqueueTicketResponse>("https://api-service.edi.su/Api/Dixy/Ticket/Enqueue", req); if (enqueueResponse.intCode == 200) { return(true); } return(false); } catch (Exception ex) { Logger.log("error while processing [" + e.document_id + "]"); Logger.log(enqueueResponse.varMessage); Logger.log(ex.Message); return(false); } }
public bool sendTicket(string content, string sign, string docId) { EnqueueTicketRequest req = null; EnqueueTicketResponse enqueueResponse = null; try { req = new EnqueueTicketRequest(authToken, docId, content, sign); enqueueResponse = (EnqueueTicketResponse)Http2.post <EnqueueTicketResponse>("https://api-service.edi.su/Api/Dixy/Ticket/Enqueue", req); if (enqueueResponse.intCode == 200) { return(true); } return(false); } catch (Exception ex) { Logger.log("error while processing [" + docId + "]"); Logger.log(enqueueResponse.varMessage); Logger.log(ex.Message); return(false); } }