diff --git a/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/WsDailySchedules.java b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/WsDailySchedules.java index 0f1c1bd..ce614fe 100644 --- a/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/WsDailySchedules.java +++ b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/WsDailySchedules.java @@ -5,6 +5,7 @@ import com.smatechnologies.opcon.restapiclient.WsFactory; import com.smatechnologies.opcon.restapiclient.WsResult; import com.smatechnologies.opcon.restapiclient.api.dailyschedules.dates.WsDates; +import com.smatechnologies.opcon.restapiclient.api.dailyschedules.properties.WsDailySchedulesProperties; import com.smatechnologies.opcon.restapiclient.model.DailySchedule; import com.smatechnologies.opcon.restapiclient.model.ScheduleDailyStatusCount; @@ -59,4 +60,9 @@ public DailySchedule get(String dailyScheduleId) throws WsException { public ScheduleDailyStatusCount countByStatus(DailySchedulesCriteria criteria) throws WsException { return wsFactory.create(Ws.Type.GET).path("count_by_status").criteria(criteria).run(ScheduleDailyStatusCount.class); } + + public WsDailySchedulesProperties properties(String dailyScheduleId) { + return new WsDailySchedulesProperties(wsFactory.path(dailyScheduleId)); + } + } \ No newline at end of file diff --git a/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/properties/WsDailySchedulesProperties.java b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/properties/WsDailySchedulesProperties.java new file mode 100644 index 0000000..aa0ca05 --- /dev/null +++ b/src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules/properties/WsDailySchedulesProperties.java @@ -0,0 +1,30 @@ +package com.smatechnologies.opcon.restapiclient.api.dailyschedules.properties; + +import com.smatechnologies.opcon.commons.util.HtmlUtil; +import com.smatechnologies.opcon.restapiclient.Ws; +import com.smatechnologies.opcon.restapiclient.WsException; +import com.smatechnologies.opcon.restapiclient.WsFactory; +import com.smatechnologies.opcon.restapiclient.model.Property; + +import javax.ws.rs.core.GenericType; +import java.util.List; + +public class WsDailySchedulesProperties { + + private final WsFactory wsFactory; + + public WsDailySchedulesProperties(WsFactory wsFactory) { + this.wsFactory = wsFactory.path("properties"); + } + + public List get() throws WsException { + return wsFactory.create(Ws.Type.GET).run(new GenericType>() { + + }); + } + + public Property get(String name) throws WsException { + return wsFactory.create(Ws.Type.GET).path(HtmlUtil.doubleUrlEncodeSlash(name)).run(Property.class); + } + +}