| POST | /api/v1/external/lobaro |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetLobaroDefaultDeviceParsedData
{
@ApiMember(IsRequired=true, ParameterType="body")
public Pagination pagination = null;
@ApiMember(IsRequired=true, ParameterType="body")
public ArrayList<LobaroData> data = null;
public Pagination getPagination() { return pagination; }
public GetLobaroDefaultDeviceParsedData setPagination(Pagination value) { this.pagination = value; return this; }
public ArrayList<LobaroData> getData() { return data; }
public GetLobaroDefaultDeviceParsedData setData(ArrayList<LobaroData> value) { this.data = value; return this; }
}
public static class Pagination
{
public Integer limit = null;
public Integer total = null;
public Integer offset = null;
public Integer getLimit() { return limit; }
public Pagination setLimit(Integer value) { this.limit = value; return this; }
public Integer getTotal() { return total; }
public Pagination setTotal(Integer value) { this.total = value; return this; }
public Integer getOffset() { return offset; }
public Pagination setOffset(Integer value) { this.offset = value; return this; }
}
public static class LobaroData
{
public Integer id = null;
public Integer deviceId = null;
public Date createdAt = null;
public Date updatedAt = null;
public DeviceData data = null;
public Integer getId() { return id; }
public LobaroData setId(Integer value) { this.id = value; return this; }
public Integer getDeviceId() { return deviceId; }
public LobaroData setDeviceId(Integer value) { this.deviceId = value; return this; }
public Date getCreatedAt() { return createdAt; }
public LobaroData setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getUpdatedAt() { return updatedAt; }
public LobaroData setUpdatedAt(Date value) { this.updatedAt = value; return this; }
public DeviceData getData() { return data; }
public LobaroData setData(DeviceData value) { this.data = value; return this; }
}
public static class DeviceData
{
public DeviceMbusData mbus = null;
public DeviceMbusData getMbus() { return mbus; }
public DeviceData setMbus(DeviceMbusData value) { this.mbus = value; return this; }
}
public static class DeviceMbusData
{
public Integer idString = null;
public String deviceString = null;
public MbusBody body = null;
public Header header = null;
public Integer getIdString() { return idString; }
public DeviceMbusData setIdString(Integer value) { this.idString = value; return this; }
public String getDeviceString() { return deviceString; }
public DeviceMbusData setDeviceString(String value) { this.deviceString = value; return this; }
public MbusBody getBody() { return body; }
public DeviceMbusData setBody(MbusBody value) { this.body = value; return this; }
public Header getHeader() { return header; }
public DeviceMbusData setHeader(Header value) { this.header = value; return this; }
}
public static class MbusBody
{
public ArrayList<MbusBodyDataRecords> dataRecords = null;
public ArrayList<MbusBodyDataRecords> getDataRecords() { return dataRecords; }
public MbusBody setDataRecords(ArrayList<MbusBodyDataRecords> value) { this.dataRecords = value; return this; }
}
public static class MbusBodyDataRecords
{
public String vifUnit = null;
public String vifQuantity = null;
public Double valueScaled = null;
public String vifExponent = null;
public String valueString = null;
public String value = null;
public String difFunctionString = null;
public String storageNo = null;
public CompactProfile compactProfile = null;
public String getVifUnit() { return vifUnit; }
public MbusBodyDataRecords setVifUnit(String value) { this.vifUnit = value; return this; }
public String getVifQuantity() { return vifQuantity; }
public MbusBodyDataRecords setVifQuantity(String value) { this.vifQuantity = value; return this; }
public Double getValueScaled() { return valueScaled; }
public MbusBodyDataRecords setValueScaled(Double value) { this.valueScaled = value; return this; }
public String getVifExponent() { return vifExponent; }
public MbusBodyDataRecords setVifExponent(String value) { this.vifExponent = value; return this; }
public String getValueString() { return valueString; }
public MbusBodyDataRecords setValueString(String value) { this.valueString = value; return this; }
public String getValue() { return value; }
public MbusBodyDataRecords setValue(String value) { this.value = value; return this; }
public String getDifFunctionString() { return difFunctionString; }
public MbusBodyDataRecords setDifFunctionString(String value) { this.difFunctionString = value; return this; }
public String getStorageNo() { return storageNo; }
public MbusBodyDataRecords setStorageNo(String value) { this.storageNo = value; return this; }
public CompactProfile getCompactProfile() { return compactProfile; }
public MbusBodyDataRecords setCompactProfile(CompactProfile value) { this.compactProfile = value; return this; }
}
public static class CompactProfile
{
public ArrayList<History> history = null;
public ArrayList<History> getHistory() { return history; }
public CompactProfile setHistory(ArrayList<History> value) { this.history = value; return this; }
}
public static class History
{
public String time = null;
public String value = null;
public String getTime() { return time; }
public History setTime(String value) { this.time = value; return this; }
public String getValue() { return value; }
public History setValue(String value) { this.value = value; return this; }
}
public static class Header
{
public Integer idString = null;
public String deviceString = null;
public Integer getIdString() { return idString; }
public Header setIdString(Integer value) { this.idString = value; return this; }
public String getDeviceString() { return deviceString; }
public Header setDeviceString(String value) { this.deviceString = value; return this; }
}
public static class GetLobaroDefaultDeviceParsedDataResponse
{
public ResponseStatus responseStatus = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetLobaroDefaultDeviceParsedDataResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
Java GetLobaroDefaultDeviceParsedData DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/v1/external/lobaro HTTP/1.1
Host: imm-con-gmbh-servdesk.eras-online.de
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"pagination":{"limit":0,"total":0,"offset":0},"data":[{"id":0,"deviceId":0,"createdAt":"0001-01-01T00:00:00.0000000Z","updatedAt":"0001-01-01T00:00:00.0000000Z","data":{"mbus":{"idString":0,"deviceString":"String","body":{"dataRecords":[{"vifUnit":"String","vifQuantity":"String","valueScaled":0,"vifExponent":"String","valueString":"String","value":"String","difFunctionString":"String","storageNo":"String","compactProfile":{"history":[{"time":"String","value":"String"}]}}]},"header":{"idString":0,"deviceString":"String"}}}}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}