From 08941ad7ecfed474e3a5dc36ec24cea087a21f55 Mon Sep 17 00:00:00 2001 From: Bertie van Hinsbergen Date: Thu, 14 Jan 2021 13:41:15 +0100 Subject: [PATCH] Added POST function to WsDailyJobsIncidentTickets --- .../incidentTickets/WsDailyJobsIncidentTickets.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyjobs/incidentTickets/WsDailyJobsIncidentTickets.java b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyjobs/incidentTickets/WsDailyJobsIncidentTickets.java index 7804997..683f620 100644 --- a/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyjobs/incidentTickets/WsDailyJobsIncidentTickets.java +++ b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyjobs/incidentTickets/WsDailyJobsIncidentTickets.java @@ -30,4 +30,10 @@ public IncidentTicketDailyJob put(IncidentTicketDailyJob incidentTicketDailyJob) return wsFactory.create(Ws.Type.PUT, incidentTicketDailyJob).path(id).run(IncidentTicketDailyJob.class); } + public IncidentTicketDailyJob post(IncidentTicketDailyJob incidentTicketDailyJob) throws WsException { + Objects.requireNonNull(incidentTicketDailyJob, "IncidentTicketDailyJob cannot be null"); + + return wsFactory.create(Ws.Type.POST, incidentTicketDailyJob).run(IncidentTicketDailyJob.class); + } + }