Server

<back to all web services

GetLobaroNlFacilityDeviceParsedData

External
Requires Authentication
The following routes are available for this service:
POST/api/v1/external/nlfacility
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetLobaroNlFacilityDeviceParsedData
    {
        @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 GetLobaroNlFacilityDeviceParsedData setPagination(Pagination value) { this.pagination = value; return this; }
        public ArrayList<LobaroData> getData() { return data; }
        public GetLobaroNlFacilityDeviceParsedData 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 GetLobaroNlFacilityDeviceParsedDataResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetLobaroNlFacilityDeviceParsedDataResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java GetLobaroNlFacilityDeviceParsedData DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/v1/external/nlfacility HTTP/1.1 
Host: messdienstservice-stadtwerke-peine-servdesk.eras-online.de 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetLobaroNlFacilityDeviceParsedData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro.LobaroModels">
    <d2p1:LobaroData>
      <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
      <d2p1:Data>
        <d2p1:Mbus>
          <d2p1:Body>
            <d2p1:DataRecords>
              <d2p1:MbusBodyDataRecords>
                <d2p1:CompactProfile>
                  <d2p1:History>
                    <d2p1:History>
                      <d2p1:Time>String</d2p1:Time>
                      <d2p1:Value>String</d2p1:Value>
                    </d2p1:History>
                  </d2p1:History>
                </d2p1:CompactProfile>
                <d2p1:DifFunctionString>String</d2p1:DifFunctionString>
                <d2p1:StorageNo>String</d2p1:StorageNo>
                <d2p1:Value>String</d2p1:Value>
                <d2p1:ValueScaled>0</d2p1:ValueScaled>
                <d2p1:ValueString>String</d2p1:ValueString>
                <d2p1:VifExponent>String</d2p1:VifExponent>
                <d2p1:VifQuantity>String</d2p1:VifQuantity>
                <d2p1:VifUnit>String</d2p1:VifUnit>
              </d2p1:MbusBodyDataRecords>
            </d2p1:DataRecords>
          </d2p1:Body>
          <d2p1:DeviceString>String</d2p1:DeviceString>
          <d2p1:Header>
            <d2p1:DeviceString>String</d2p1:DeviceString>
            <d2p1:IdString>0</d2p1:IdString>
          </d2p1:Header>
          <d2p1:IdString>0</d2p1:IdString>
        </d2p1:Mbus>
      </d2p1:Data>
      <d2p1:DeviceId>0</d2p1:DeviceId>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
    </d2p1:LobaroData>
  </Data>
  <Pagination xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro.LobaroModels">
    <d2p1:Limit>0</d2p1:Limit>
    <d2p1:Offset>0</d2p1:Offset>
    <d2p1:Total>0</d2p1:Total>
  </Pagination>
</GetLobaroNlFacilityDeviceParsedData>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetLobaroNlFacilityDeviceParsedDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</GetLobaroNlFacilityDeviceParsedDataResponse>