/* Options: Date: 2025-09-14 05:45:42 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.trackunit.com/public //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetAlarm.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/GetAlarm", Verbs="GET POST") // @Route(Path="/GetAlarm/{Id}", Verbs="GET POST") // @Route(Path="/Alarm", Verbs="GET") // @Route(Path="/Alarm/{Id}", Verbs="GET") @DataContract public static class GetAlarm implements IReturn { @DataMember public String id = null; public String getId() { return id; } public GetAlarm setId(String value) { this.id = value; return this; } private static Object responseType = GetAlarmResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class GetAlarmResponse { @DataMember public ArrayList list = null; @DataMember public ResponseStatus responseStatus = null; public ArrayList getList() { return list; } public GetAlarmResponse setList(ArrayList value) { this.list = value; return this; } public ResponseStatus getResponseStatus() { return responseStatus; } public GetAlarmResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } @DataContract public static class TemperatureAlarmLimits { @DataMember public Double temperature1LowerLimit = null; @DataMember public Double temperature1UpperLimit = null; @DataMember public Double temperature2LowerLimit = null; @DataMember public Double temperature2UpperLimit = null; public Double getTemperature1LowerLimit() { return temperature1LowerLimit; } public TemperatureAlarmLimits setTemperature1LowerLimit(Double value) { this.temperature1LowerLimit = value; return this; } public Double getTemperature1UpperLimit() { return temperature1UpperLimit; } public TemperatureAlarmLimits setTemperature1UpperLimit(Double value) { this.temperature1UpperLimit = value; return this; } public Double getTemperature2LowerLimit() { return temperature2LowerLimit; } public TemperatureAlarmLimits setTemperature2LowerLimit(Double value) { this.temperature2LowerLimit = value; return this; } public Double getTemperature2UpperLimit() { return temperature2UpperLimit; } public TemperatureAlarmLimits setTemperature2UpperLimit(Double value) { this.temperature2UpperLimit = value; return this; } } @DataContract public static class ADVoltageAlarmLimits { @DataMember public Double adVoltageLowerLimit = null; @DataMember public Double adVoltageUpperLimit = null; public Double getAdVoltageLowerLimit() { return adVoltageLowerLimit; } public ADVoltageAlarmLimits setAdVoltageLowerLimit(Double value) { this.adVoltageLowerLimit = value; return this; } public Double getAdVoltageUpperLimit() { return adVoltageUpperLimit; } public ADVoltageAlarmLimits setAdVoltageUpperLimit(Double value) { this.adVoltageUpperLimit = value; return this; } } @DataContract public static class Location { @DataMember public Double latitude = null; @DataMember public Double longitude = null; public Double getLatitude() { return latitude; } public Location setLatitude(Double value) { this.latitude = value; return this; } public Double getLongitude() { return longitude; } public Location setLongitude(Double value) { this.longitude = value; return this; } } @DataContract public static class TimeOfDay { @DataMember public Integer hour = null; @DataMember public Integer minute = null; public Integer getHour() { return hour; } public TimeOfDay setHour(Integer value) { this.hour = value; return this; } public Integer getMinute() { return minute; } public TimeOfDay setMinute(Integer value) { this.minute = value; return this; } } @DataContract public static class Alarm { @DataMember public String id = null; @DataMember public Date created = null; @DataMember public String name = null; @DataMember public String type = null; @DataMember public Boolean enabled = null; @DataMember public Boolean allUnits = null; @DataMember public ArrayList units = null; @DataMember public ArrayList groups = null; @DataMember public ArrayList emailRecipients = null; @DataMember public ArrayList systemRecipients = null; @DataMember public ArrayList smsRecipients = null; @DataMember public TemperatureAlarmLimits temperatureLimits = null; @DataMember public ADVoltageAlarmLimits adVoltageLimits = null; @DataMember public Integer adVoltageInputIndex = null; @DataMember public Double threshold = null; @DataMember public Double batteryLevel = null; @DataMember public Location location = null; @DataMember public Double radius = null; @DataMember public Integer inputIndex = null; @DataMember public Double interval = null; @DataMember public String pointId = null; @DataMember public Date expectedArrivalTime = null; @DataMember public Double powerLevel = null; @DataMember public ArrayList weekdays = null; @DataMember public TimeOfDay timeStart = null; @DataMember public TimeOfDay timeEnd = null; @DataMember public String zoneId = null; public String getId() { return id; } public Alarm setId(String value) { this.id = value; return this; } public Date getCreated() { return created; } public Alarm setCreated(Date value) { this.created = value; return this; } public String getName() { return name; } public Alarm setName(String value) { this.name = value; return this; } public String getType() { return type; } public Alarm setType(String value) { this.type = value; return this; } public Boolean isEnabled() { return enabled; } public Alarm setEnabled(Boolean value) { this.enabled = value; return this; } public Boolean isAllUnits() { return allUnits; } public Alarm setAllUnits(Boolean value) { this.allUnits = value; return this; } public ArrayList getUnits() { return units; } public Alarm setUnits(ArrayList value) { this.units = value; return this; } public ArrayList getGroups() { return groups; } public Alarm setGroups(ArrayList value) { this.groups = value; return this; } public ArrayList getEmailRecipients() { return emailRecipients; } public Alarm setEmailRecipients(ArrayList value) { this.emailRecipients = value; return this; } public ArrayList getSystemRecipients() { return systemRecipients; } public Alarm setSystemRecipients(ArrayList value) { this.systemRecipients = value; return this; } public ArrayList getSmsRecipients() { return smsRecipients; } public Alarm setSmsRecipients(ArrayList value) { this.smsRecipients = value; return this; } public TemperatureAlarmLimits getTemperatureLimits() { return temperatureLimits; } public Alarm setTemperatureLimits(TemperatureAlarmLimits value) { this.temperatureLimits = value; return this; } public ADVoltageAlarmLimits getAdVoltageLimits() { return adVoltageLimits; } public Alarm setAdVoltageLimits(ADVoltageAlarmLimits value) { this.adVoltageLimits = value; return this; } public Integer getAdVoltageInputIndex() { return adVoltageInputIndex; } public Alarm setAdVoltageInputIndex(Integer value) { this.adVoltageInputIndex = value; return this; } public Double getThreshold() { return threshold; } public Alarm setThreshold(Double value) { this.threshold = value; return this; } public Double getBatteryLevel() { return batteryLevel; } public Alarm setBatteryLevel(Double value) { this.batteryLevel = value; return this; } public Location getLocation() { return location; } public Alarm setLocation(Location value) { this.location = value; return this; } public Double getRadius() { return radius; } public Alarm setRadius(Double value) { this.radius = value; return this; } public Integer getInputIndex() { return inputIndex; } public Alarm setInputIndex(Integer value) { this.inputIndex = value; return this; } public Double getInterval() { return interval; } public Alarm setInterval(Double value) { this.interval = value; return this; } public String getPointId() { return pointId; } public Alarm setPointId(String value) { this.pointId = value; return this; } public Date getExpectedArrivalTime() { return expectedArrivalTime; } public Alarm setExpectedArrivalTime(Date value) { this.expectedArrivalTime = value; return this; } public Double getPowerLevel() { return powerLevel; } public Alarm setPowerLevel(Double value) { this.powerLevel = value; return this; } public ArrayList getWeekdays() { return weekdays; } public Alarm setWeekdays(ArrayList value) { this.weekdays = value; return this; } public TimeOfDay getTimeStart() { return timeStart; } public Alarm setTimeStart(TimeOfDay value) { this.timeStart = value; return this; } public TimeOfDay getTimeEnd() { return timeEnd; } public Alarm setTimeEnd(TimeOfDay value) { this.timeEnd = value; return this; } public String getZoneId() { return zoneId; } public Alarm setZoneId(String value) { this.zoneId = value; return this; } } }