| POST | /App/{UserId}/HkEvaluations |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class AddHkEvaluations extends Eras2AppServiceModelBase
{
@DataMember(Name="Evaluations")
@SerializedName("Evaluations")
public IList<HkEvaluation> evaluations = null;
public IList<HkEvaluation> getEvaluations() { return evaluations; }
public AddHkEvaluations setEvaluations(IList<HkEvaluation> value) { this.evaluations = value; return this; }
}
@DataContract
public static class Eras2AppServiceModelBase
{
@DataMember(Name="UserId")
@SerializedName("UserId")
public UUID userId = null;
public UUID getUserId() { return userId; }
public Eras2AppServiceModelBase setUserId(UUID value) { this.userId = value; return this; }
}
@DataContract
public static class HkEvaluation
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="DeviceGuid")
@SerializedName("DeviceGuid")
public UUID deviceGuid = null;
@DataMember(Name="DeviceNumber")
@SerializedName("DeviceNumber")
public String deviceNumber = null;
@DataMember(Name="NutzeinheitNumber")
@SerializedName("NutzeinheitNumber")
public String nutzeinheitNumber = null;
@DataMember(Name="NutzeinheitAddress")
@SerializedName("NutzeinheitAddress")
public String nutzeinheitAddress = null;
@DataMember(Name="HkveModel")
@SerializedName("HkveModel")
public String hkveModel = null;
@DataMember(Name="HkveModelCustom")
@SerializedName("HkveModelCustom")
public String hkveModelCustom = null;
@DataMember(Name="MountingPoint")
@SerializedName("MountingPoint")
public String mountingPoint = null;
@DataMember(Name="MountingPointCustom")
@SerializedName("MountingPointCustom")
public String mountingPointCustom = null;
@DataMember(Name="GroupId")
@SerializedName("GroupId")
public Integer groupId = null;
@DataMember(Name="GroupName")
@SerializedName("GroupName")
public String groupName = null;
@DataMember(Name="TopMatch")
@SerializedName("TopMatch")
public String topMatch = null;
@DataMember(Name="RadiatisRadiatorId")
@SerializedName("RadiatisRadiatorId")
public Integer radiatisRadiatorId = null;
@DataMember(Name="ModelNoteReference")
@SerializedName("ModelNoteReference")
public String modelNoteReference = null;
@DataMember(Name="Match")
@SerializedName("Match")
public Integer match = null;
@DataMember(Name="KcValue")
@SerializedName("KcValue")
public BigDecimal kcValue = null;
@DataMember(Name="KqValue")
@SerializedName("KqValue")
public BigDecimal kqValue = null;
@DataMember(Name="Created")
@SerializedName("Created")
public Date created = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="TechnicianUserId")
@SerializedName("TechnicianUserId")
public String technicianUserId = null;
@DataMember(Name="ReceivedAt")
@SerializedName("ReceivedAt")
public Date receivedAt = null;
@DataMember(Name="Parameters")
@SerializedName("Parameters")
public IList<HkEvaluationParameter> parameters = null;
@DataMember(Name="Attributes")
@SerializedName("Attributes")
public IList<HkEvaluationAttribute> attributes = null;
public UUID getGuid() { return guid; }
public HkEvaluation setGuid(UUID value) { this.guid = value; return this; }
public UUID getDeviceGuid() { return deviceGuid; }
public HkEvaluation setDeviceGuid(UUID value) { this.deviceGuid = value; return this; }
public String getDeviceNumber() { return deviceNumber; }
public HkEvaluation setDeviceNumber(String value) { this.deviceNumber = value; return this; }
public String getNutzeinheitNumber() { return nutzeinheitNumber; }
public HkEvaluation setNutzeinheitNumber(String value) { this.nutzeinheitNumber = value; return this; }
public String getNutzeinheitAddress() { return nutzeinheitAddress; }
public HkEvaluation setNutzeinheitAddress(String value) { this.nutzeinheitAddress = value; return this; }
public String getHkveModel() { return hkveModel; }
public HkEvaluation setHkveModel(String value) { this.hkveModel = value; return this; }
public String getHkveModelCustom() { return hkveModelCustom; }
public HkEvaluation setHkveModelCustom(String value) { this.hkveModelCustom = value; return this; }
public String getMountingPoint() { return mountingPoint; }
public HkEvaluation setMountingPoint(String value) { this.mountingPoint = value; return this; }
public String getMountingPointCustom() { return mountingPointCustom; }
public HkEvaluation setMountingPointCustom(String value) { this.mountingPointCustom = value; return this; }
public Integer getGroupId() { return groupId; }
public HkEvaluation setGroupId(Integer value) { this.groupId = value; return this; }
public String getGroupName() { return groupName; }
public HkEvaluation setGroupName(String value) { this.groupName = value; return this; }
public String getTopMatch() { return topMatch; }
public HkEvaluation setTopMatch(String value) { this.topMatch = value; return this; }
public Integer getRadiatisRadiatorId() { return radiatisRadiatorId; }
public HkEvaluation setRadiatisRadiatorId(Integer value) { this.radiatisRadiatorId = value; return this; }
public String getModelNoteReference() { return modelNoteReference; }
public HkEvaluation setModelNoteReference(String value) { this.modelNoteReference = value; return this; }
public Integer getMatch() { return match; }
public HkEvaluation setMatch(Integer value) { this.match = value; return this; }
public BigDecimal getKcValue() { return kcValue; }
public HkEvaluation setKcValue(BigDecimal value) { this.kcValue = value; return this; }
public BigDecimal getKqValue() { return kqValue; }
public HkEvaluation setKqValue(BigDecimal value) { this.kqValue = value; return this; }
public Date getCreated() { return created; }
public HkEvaluation setCreated(Date value) { this.created = value; return this; }
public Date getLastModified() { return lastModified; }
public HkEvaluation setLastModified(Date value) { this.lastModified = value; return this; }
public String getTechnicianUserId() { return technicianUserId; }
public HkEvaluation setTechnicianUserId(String value) { this.technicianUserId = value; return this; }
public Date getReceivedAt() { return receivedAt; }
public HkEvaluation setReceivedAt(Date value) { this.receivedAt = value; return this; }
public IList<HkEvaluationParameter> getParameters() { return parameters; }
public HkEvaluation setParameters(IList<HkEvaluationParameter> value) { this.parameters = value; return this; }
public IList<HkEvaluationAttribute> getAttributes() { return attributes; }
public HkEvaluation setAttributes(IList<HkEvaluationAttribute> value) { this.attributes = value; return this; }
}
@DataContract
public static class HkEvaluationParameter
{
@DataMember(Name="RadiatisId")
@SerializedName("RadiatisId")
public Integer radiatisId = null;
@DataMember(Name="Code")
@SerializedName("Code")
public String code = null;
@DataMember(Name="Value")
@SerializedName("Value")
public String value = null;
public Integer getRadiatisId() { return radiatisId; }
public HkEvaluationParameter setRadiatisId(Integer value) { this.radiatisId = value; return this; }
public String getCode() { return code; }
public HkEvaluationParameter setCode(String value) { this.code = value; return this; }
public String getValue() { return value; }
public HkEvaluationParameter setValue(String value) { this.value = value; return this; }
}
@DataContract
public static class HkEvaluationAttribute
{
@DataMember(Name="RadiatisId")
@SerializedName("RadiatisId")
public Integer radiatisId = null;
@DataMember(Name="Code")
@SerializedName("Code")
public String code = null;
@DataMember(Name="Value")
@SerializedName("Value")
public Integer value = null;
public Integer getRadiatisId() { return radiatisId; }
public HkEvaluationAttribute setRadiatisId(Integer value) { this.radiatisId = value; return this; }
public String getCode() { return code; }
public HkEvaluationAttribute setCode(String value) { this.code = value; return this; }
public Integer getValue() { return value; }
public HkEvaluationAttribute setValue(Integer value) { this.value = value; return this; }
}
@DataContract
public static class AddHkEvaluationsResponse
{
@DataMember(Name="AcceptedGuids")
@SerializedName("AcceptedGuids")
public IList<UUID> acceptedGuids = null;
@DataMember(Name="ResponseStatus")
@SerializedName("ResponseStatus")
public ResponseStatus responseStatus = null;
public IList<UUID> getAcceptedGuids() { return acceptedGuids; }
public AddHkEvaluationsResponse setAcceptedGuids(IList<UUID> value) { this.acceptedGuids = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public AddHkEvaluationsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /App/{UserId}/HkEvaluations HTTP/1.1
Host: mi-waerme-servamw.eras-online.de
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AddHkEvaluations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Add">
<UserId xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App">00000000-0000-0000-0000-000000000000</UserId>
<Evaluations xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Common" i:nil="true" />
</AddHkEvaluations>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AddHkEvaluationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Add">
<AcceptedGuids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<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>
</AddHkEvaluationsResponse>