File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
src/main/java/com/smatechnologies/opcon/restapiclient/api/dailyschedules Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 55import com .smatechnologies .opcon .restapiclient .WsFactory ;
66import com .smatechnologies .opcon .restapiclient .WsResult ;
77import com .smatechnologies .opcon .restapiclient .api .dailyschedules .dates .WsDates ;
8+ import com .smatechnologies .opcon .restapiclient .api .dailyschedules .properties .WsDailySchedulesProperties ;
89import com .smatechnologies .opcon .restapiclient .model .DailySchedule ;
910import com .smatechnologies .opcon .restapiclient .model .ScheduleDailyStatusCount ;
1011
@@ -59,4 +60,9 @@ public DailySchedule get(String dailyScheduleId) throws WsException {
5960 public ScheduleDailyStatusCount countByStatus (DailySchedulesCriteria criteria ) throws WsException {
6061 return wsFactory .create (Ws .Type .GET ).path ("count_by_status" ).criteria (criteria ).run (ScheduleDailyStatusCount .class );
6162 }
63+
64+ public WsDailySchedulesProperties properties (String dailyScheduleId ) {
65+ return new WsDailySchedulesProperties (wsFactory .path (dailyScheduleId ));
66+ }
67+
6268}
Original file line number Diff line number Diff line change 1+ package com .smatechnologies .opcon .restapiclient .api .dailyschedules .properties ;
2+
3+ import com .smatechnologies .opcon .commons .util .HtmlUtil ;
4+ import com .smatechnologies .opcon .restapiclient .Ws ;
5+ import com .smatechnologies .opcon .restapiclient .WsException ;
6+ import com .smatechnologies .opcon .restapiclient .WsFactory ;
7+ import com .smatechnologies .opcon .restapiclient .model .Property ;
8+
9+ import javax .ws .rs .core .GenericType ;
10+ import java .util .List ;
11+
12+ public class WsDailySchedulesProperties {
13+
14+ private final WsFactory wsFactory ;
15+
16+ public WsDailySchedulesProperties (WsFactory wsFactory ) {
17+ this .wsFactory = wsFactory .path ("properties" );
18+ }
19+
20+ public List <Property > get () throws WsException {
21+ return wsFactory .create (Ws .Type .GET ).run (new GenericType <List <Property >>() {
22+
23+ });
24+ }
25+
26+ public Property get (String name ) throws WsException {
27+ return wsFactory .create (Ws .Type .GET ).path (HtmlUtil .doubleUrlEncodeSlash (name )).run (Property .class );
28+ }
29+
30+ }
You can’t perform that action at this time.
0 commit comments