Server

<back to all web services

EvaluateHkRadiators

Requires Authentication
The following routes are available for this service:
POST/App/{UserId}/HkEvaluate
import Foundation
import ServiceStack

// @DataContract
public class EvaluateHkRadiators : Codable
{
    // @DataMember(Name="RadiatorGroupId")
    public var RadiatorGroupId:Int

    // @DataMember(Name="Parameters")
    public var Parameters:IList<HkEvaluateParameter>

    // @DataMember(Name="Attributes")
    public var Attributes:IList<HkEvaluateAttribute>

    // @DataMember(Name="DeviceTypeIdentifier")
    public var DeviceTypeIdentifier:String

    // @DataMember(Name="MountingPoint")
    public var MountingPoint:String

    // @DataMember(Name="MaxResultSize")
    public var MaxResultSize:Int

    required public init(){}
}

// @DataContract
public class HkEvaluateParameter : Codable
{
    // @DataMember(Name="RadiatisId")
    public var RadiatisId:Int

    // @DataMember(Name="Value")
    public var Value:String

    required public init(){}
}

// @DataContract
public class HkEvaluateAttribute : Codable
{
    // @DataMember(Name="RadiatisId")
    public var RadiatisId:Int

    // @DataMember(Name="Value")
    public var Value:Int

    required public init(){}
}

// @DataContract
public class EvaluateHkRadiatorsResponse : Codable
{
    // @DataMember(Name="Radiators")
    public var Radiators:IList<HkRadiatorMatch>

    // @DataMember(Name="ResponseStatus")
    public var ResponseStatus:ResponseStatus

    required public init(){}
}

// @DataContract
public class HkRadiatorMatch : Codable
{
    // @DataMember(Name="Match")
    public var Match:Int

    // @DataMember(Name="RadiatisRadiatorId")
    public var RadiatisRadiatorId:Int?

    // @DataMember(Name="Producer")
    public var Producer:String

    // @DataMember(Name="Model")
    public var Model:String

    // @DataMember(Name="ModelNoteReference")
    public var ModelNoteReference:String

    // @DataMember(Name="KcValue")
    public var KcValue:Double?

    // @DataMember(Name="KqValue")
    public var KqValue:Double?

    // @DataMember(Name="KtValue")
    public var KtValue:Double?

    // @DataMember(Name="Differences")
    public var Differences:IList<HkMatchDifference>

    required public init(){}
}

// @DataContract
public class HkMatchDifference : Codable
{
    // @DataMember(Name="Code")
    public var Code:String

    // @DataMember(Name="Name")
    public var Name:String

    // @DataMember(Name="Value")
    public var Value:String

    required public init(){}
}


Swift EvaluateHkRadiators DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: develop-servamw.eras-online.de 
Accept: application/json
Content-Type: application/json
Content-Length: length

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

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