Server

<back to all web services

EvaluateHkRadiators

Requires Authentication
The following routes are available for this service:
POST/App/{UserId}/HkEvaluate
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 EvaluateHkRadiators extends Eras2AppServiceModelBase
    {
        @DataMember(Name="RadiatorGroupId")
        @SerializedName("RadiatorGroupId")
        public Integer radiatorGroupId = null;

        @DataMember(Name="Parameters")
        @SerializedName("Parameters")
        public IList<HkEvaluateParameter> parameters = null;

        @DataMember(Name="Attributes")
        @SerializedName("Attributes")
        public IList<HkEvaluateAttribute> attributes = null;

        @DataMember(Name="DeviceTypeIdentifier")
        @SerializedName("DeviceTypeIdentifier")
        public String deviceTypeIdentifier = null;

        @DataMember(Name="MountingPoint")
        @SerializedName("MountingPoint")
        public String mountingPoint = null;

        @DataMember(Name="MaxResultSize")
        @SerializedName("MaxResultSize")
        public Integer maxResultSize = null;
        
        public Integer getRadiatorGroupId() { return radiatorGroupId; }
        public EvaluateHkRadiators setRadiatorGroupId(Integer value) { this.radiatorGroupId = value; return this; }
        public IList<HkEvaluateParameter> getParameters() { return parameters; }
        public EvaluateHkRadiators setParameters(IList<HkEvaluateParameter> value) { this.parameters = value; return this; }
        public IList<HkEvaluateAttribute> getAttributes() { return attributes; }
        public EvaluateHkRadiators setAttributes(IList<HkEvaluateAttribute> value) { this.attributes = value; return this; }
        public String getDeviceTypeIdentifier() { return deviceTypeIdentifier; }
        public EvaluateHkRadiators setDeviceTypeIdentifier(String value) { this.deviceTypeIdentifier = value; return this; }
        public String getMountingPoint() { return mountingPoint; }
        public EvaluateHkRadiators setMountingPoint(String value) { this.mountingPoint = value; return this; }
        public Integer getMaxResultSize() { return maxResultSize; }
        public EvaluateHkRadiators setMaxResultSize(Integer value) { this.maxResultSize = 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 HkEvaluateParameter
    {
        @DataMember(Name="RadiatisId")
        @SerializedName("RadiatisId")
        public Integer radiatisId = null;

        @DataMember(Name="Value")
        @SerializedName("Value")
        public String value = null;
        
        public Integer getRadiatisId() { return radiatisId; }
        public HkEvaluateParameter setRadiatisId(Integer value) { this.radiatisId = value; return this; }
        public String getValue() { return value; }
        public HkEvaluateParameter setValue(String value) { this.value = value; return this; }
    }

    @DataContract
    public static class HkEvaluateAttribute
    {
        @DataMember(Name="RadiatisId")
        @SerializedName("RadiatisId")
        public Integer radiatisId = null;

        @DataMember(Name="Value")
        @SerializedName("Value")
        public Integer value = null;
        
        public Integer getRadiatisId() { return radiatisId; }
        public HkEvaluateAttribute setRadiatisId(Integer value) { this.radiatisId = value; return this; }
        public Integer getValue() { return value; }
        public HkEvaluateAttribute setValue(Integer value) { this.value = value; return this; }
    }

    @DataContract
    public static class EvaluateHkRadiatorsResponse
    {
        @DataMember(Name="Radiators")
        @SerializedName("Radiators")
        public IList<HkRadiatorMatch> radiators = null;

        @DataMember(Name="ResponseStatus")
        @SerializedName("ResponseStatus")
        public ResponseStatus responseStatus = null;
        
        public IList<HkRadiatorMatch> getRadiators() { return radiators; }
        public EvaluateHkRadiatorsResponse setRadiators(IList<HkRadiatorMatch> value) { this.radiators = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public EvaluateHkRadiatorsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    @DataContract
    public static class HkRadiatorMatch
    {
        @DataMember(Name="Match")
        @SerializedName("Match")
        public Integer match = null;

        @DataMember(Name="RadiatisRadiatorId")
        @SerializedName("RadiatisRadiatorId")
        public Integer radiatisRadiatorId = null;

        @DataMember(Name="Producer")
        @SerializedName("Producer")
        public String producer = null;

        @DataMember(Name="Model")
        @SerializedName("Model")
        public String model = null;

        @DataMember(Name="ModelNoteReference")
        @SerializedName("ModelNoteReference")
        public String modelNoteReference = null;

        @DataMember(Name="KcValue")
        @SerializedName("KcValue")
        public BigDecimal kcValue = null;

        @DataMember(Name="KqValue")
        @SerializedName("KqValue")
        public BigDecimal kqValue = null;

        @DataMember(Name="KtValue")
        @SerializedName("KtValue")
        public BigDecimal ktValue = null;

        @DataMember(Name="Differences")
        @SerializedName("Differences")
        public IList<HkMatchDifference> differences = null;
        
        public Integer getMatch() { return match; }
        public HkRadiatorMatch setMatch(Integer value) { this.match = value; return this; }
        public Integer getRadiatisRadiatorId() { return radiatisRadiatorId; }
        public HkRadiatorMatch setRadiatisRadiatorId(Integer value) { this.radiatisRadiatorId = value; return this; }
        public String getProducer() { return producer; }
        public HkRadiatorMatch setProducer(String value) { this.producer = value; return this; }
        public String getModel() { return model; }
        public HkRadiatorMatch setModel(String value) { this.model = value; return this; }
        public String getModelNoteReference() { return modelNoteReference; }
        public HkRadiatorMatch setModelNoteReference(String value) { this.modelNoteReference = value; return this; }
        public BigDecimal getKcValue() { return kcValue; }
        public HkRadiatorMatch setKcValue(BigDecimal value) { this.kcValue = value; return this; }
        public BigDecimal getKqValue() { return kqValue; }
        public HkRadiatorMatch setKqValue(BigDecimal value) { this.kqValue = value; return this; }
        public BigDecimal getKtValue() { return ktValue; }
        public HkRadiatorMatch setKtValue(BigDecimal value) { this.ktValue = value; return this; }
        public IList<HkMatchDifference> getDifferences() { return differences; }
        public HkRadiatorMatch setDifferences(IList<HkMatchDifference> value) { this.differences = value; return this; }
    }

    @DataContract
    public static class HkMatchDifference
    {
        @DataMember(Name="Code")
        @SerializedName("Code")
        public String code = null;

        @DataMember(Name="Name")
        @SerializedName("Name")
        public String name = null;

        @DataMember(Name="Value")
        @SerializedName("Value")
        public String value = null;
        
        public String getCode() { return code; }
        public HkMatchDifference setCode(String value) { this.code = value; return this; }
        public String getName() { return name; }
        public HkMatchDifference setName(String value) { this.name = value; return this; }
        public String getValue() { return value; }
        public HkMatchDifference setValue(String value) { this.value = value; return this; }
    }

}

Java EvaluateHkRadiators DTOs

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

HTTP + JSV

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

POST /App/{UserId}/HkEvaluate HTTP/1.1 
Host: calotec-portal-servamw.eras-online.de 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	RadiatorGroupId: 0,
	DeviceTypeIdentifier: String,
	MountingPoint: String,
	MaxResultSize: 0,
	UserId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}