/* Options: Date: 2026-10-20 17:34:36 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://andreiuologmbh-servdesk.eras-online.de //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PostDeviceConsumption.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/api/v1/deviceconsumptions", Verbs="POST") public static class PostDeviceConsumption implements IReturn, IHasBearerToken { @ApiMember(IsRequired=true, ParameterType="body") public DeviceConsumption deviceConsumption = null; @ApiMember(IsRequired=true, ParameterType="body") public RelatedTo relatedToDevice = null; @ApiMember(IsRequired=true, ParameterType="body") public String bearerToken = null; public DeviceConsumption getDeviceConsumption() { return deviceConsumption; } public PostDeviceConsumption setDeviceConsumption(DeviceConsumption value) { this.deviceConsumption = value; return this; } public RelatedTo getRelatedToDevice() { return relatedToDevice; } public PostDeviceConsumption setRelatedToDevice(RelatedTo value) { this.relatedToDevice = value; return this; } public String getBearerToken() { return bearerToken; } public PostDeviceConsumption setBearerToken(String value) { this.bearerToken = value; return this; } private static Object responseType = PostDeviceConsumptionResponse.class; public Object getResponseType() { return responseType; } } public static class PostDeviceConsumptionResponse { public ResponseStatus responseStatus = null; public String checksumMD5 = null; public ResponseStatus getResponseStatus() { return responseStatus; } public PostDeviceConsumptionResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } public String getChecksumMD5() { return checksumMD5; } public PostDeviceConsumptionResponse setChecksumMD5(String value) { this.checksumMD5 = value; return this; } } @DataContract public static class RelatedTo { @DataMember public UUID guid = null; public UUID getGuid() { return guid; } public RelatedTo setGuid(UUID value) { this.guid = value; return this; } } @DataContract public static class DeviceConsumption { @DataMember public UUID guid = null; @DataMember public Double deviceReading = null; @DataMember public Date deviceReadingDate = null; @DataMember public DeviceReadingKind deviceReadingKind = null; @DataMember public Date changeDate = null; @DataMember public String note = null; @DataMember public String ampouleColour = null; @DataMember public String deviceGuid = null; public UUID getGuid() { return guid; } public DeviceConsumption setGuid(UUID value) { this.guid = value; return this; } public Double getDeviceReading() { return deviceReading; } public DeviceConsumption setDeviceReading(Double value) { this.deviceReading = value; return this; } public Date getDeviceReadingDate() { return deviceReadingDate; } public DeviceConsumption setDeviceReadingDate(Date value) { this.deviceReadingDate = value; return this; } public DeviceReadingKind getDeviceReadingKind() { return deviceReadingKind; } public DeviceConsumption setDeviceReadingKind(DeviceReadingKind value) { this.deviceReadingKind = value; return this; } public Date getChangeDate() { return changeDate; } public DeviceConsumption setChangeDate(Date value) { this.changeDate = value; return this; } public String getNote() { return note; } public DeviceConsumption setNote(String value) { this.note = value; return this; } public String getAmpouleColour() { return ampouleColour; } public DeviceConsumption setAmpouleColour(String value) { this.ampouleColour = value; return this; } public String getDeviceGuid() { return deviceGuid; } public DeviceConsumption setDeviceGuid(String value) { this.deviceGuid = value; return this; } } @DataContract public static class DeviceConsumption { @DataMember(Name="Guid") @SerializedName("Guid") public String guid = null; @DataMember(Name="Ablesung") @SerializedName("Ablesung") public Double deviceReading = null; @DataMember(Name="Ablesedatum") @SerializedName("Ablesedatum") public Date deviceReadingDate = null; @DataMember(Name="Ableseart") @SerializedName("Ableseart") public String deviceReadingKind = null; @DataMember(Name="Aenderungsdatum") @SerializedName("Aenderungsdatum") public Date changeDate = null; @DataMember(Name="Anmerkung") @SerializedName("Anmerkung") public String note = null; @DataMember(Name="Ampullenfarbe") @SerializedName("Ampullenfarbe") public String ampouleColour = null; @DataMember(Name="DeviceGuid") @SerializedName("DeviceGuid") public String deviceGuid = null; public String getGuid() { return guid; } public DeviceConsumption setGuid(String value) { this.guid = value; return this; } public Double getDeviceReading() { return deviceReading; } public DeviceConsumption setDeviceReading(Double value) { this.deviceReading = value; return this; } public Date getDeviceReadingDate() { return deviceReadingDate; } public DeviceConsumption setDeviceReadingDate(Date value) { this.deviceReadingDate = value; return this; } public String getDeviceReadingKind() { return deviceReadingKind; } public DeviceConsumption setDeviceReadingKind(String value) { this.deviceReadingKind = value; return this; } public Date getChangeDate() { return changeDate; } public DeviceConsumption setChangeDate(Date value) { this.changeDate = value; return this; } public String getNote() { return note; } public DeviceConsumption setNote(String value) { this.note = value; return this; } public String getAmpouleColour() { return ampouleColour; } public DeviceConsumption setAmpouleColour(String value) { this.ampouleColour = value; return this; } public String getDeviceGuid() { return deviceGuid; } public DeviceConsumption setDeviceGuid(String value) { this.deviceGuid = value; return this; } } }