| POST | /App/{UserId}/HkEvaluations |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Amw.Service.Server.ServiceModel.Eras2App.Add
Imports Eras2Amw.Service.Server.ServiceModel.Eras2App
Imports Eras2Amw.Service.Server.ServiceModel.Common
Namespace Global
Namespace Eras2Amw.Service.Server.ServiceModel.Common
<DataContract>
Public Partial Class HkEvaluation
<DataMember(Name:="Guid")>
Public Overridable Property Guid As Guid
<DataMember(Name:="DeviceGuid")>
Public Overridable Property DeviceGuid As Guid
<DataMember(Name:="DeviceNumber")>
Public Overridable Property DeviceNumber As String
<DataMember(Name:="NutzeinheitNumber")>
Public Overridable Property NutzeinheitNumber As String
<DataMember(Name:="NutzeinheitAddress")>
Public Overridable Property NutzeinheitAddress As String
<DataMember(Name:="HkveModel")>
Public Overridable Property HkveModel As String
<DataMember(Name:="HkveModelCustom")>
Public Overridable Property HkveModelCustom As String
<DataMember(Name:="MountingPoint")>
Public Overridable Property MountingPoint As String
<DataMember(Name:="MountingPointCustom")>
Public Overridable Property MountingPointCustom As String
<DataMember(Name:="GroupId")>
Public Overridable Property GroupId As Integer
<DataMember(Name:="GroupName")>
Public Overridable Property GroupName As String
<DataMember(Name:="TopMatch")>
Public Overridable Property TopMatch As String
<DataMember(Name:="RadiatisRadiatorId")>
Public Overridable Property RadiatisRadiatorId As Nullable(Of Integer)
<DataMember(Name:="ModelNoteReference")>
Public Overridable Property ModelNoteReference As String
<DataMember(Name:="Match")>
Public Overridable Property Match As Integer
<DataMember(Name:="KcValue")>
Public Overridable Property KcValue As Nullable(Of Decimal)
<DataMember(Name:="KqValue")>
Public Overridable Property KqValue As Nullable(Of Decimal)
<DataMember(Name:="Created")>
Public Overridable Property Created As Date
<DataMember(Name:="LastModified")>
Public Overridable Property LastModified As Nullable(Of Date)
<DataMember(Name:="TechnicianUserId")>
Public Overridable Property TechnicianUserId As String
<DataMember(Name:="ReceivedAt")>
Public Overridable Property ReceivedAt As Nullable(Of Date)
<DataMember(Name:="Parameters")>
Public Overridable Property Parameters As IList(Of HkEvaluationParameter)
<DataMember(Name:="Attributes")>
Public Overridable Property Attributes As IList(Of HkEvaluationAttribute)
End Class
<DataContract>
Public Partial Class HkEvaluationAttribute
<DataMember(Name:="RadiatisId")>
Public Overridable Property RadiatisId As Integer
<DataMember(Name:="Code")>
Public Overridable Property Code As String
<DataMember(Name:="Value")>
Public Overridable Property Value As Integer
End Class
<DataContract>
Public Partial Class HkEvaluationParameter
<DataMember(Name:="RadiatisId")>
Public Overridable Property RadiatisId As Integer
<DataMember(Name:="Code")>
Public Overridable Property Code As String
<DataMember(Name:="Value")>
Public Overridable Property Value As String
End Class
End Namespace
Namespace Eras2Amw.Service.Server.ServiceModel.Eras2App
<DataContract>
Public Partial Class Eras2AppServiceModelBase
<DataMember(Name:="UserId")>
Public Overridable Property UserId As Guid
End Class
End Namespace
Namespace Eras2Amw.Service.Server.ServiceModel.Eras2App.Add
<DataContract>
Public Partial Class AddHkEvaluations
Inherits Eras2AppServiceModelBase
<DataMember(Name:="Evaluations")>
Public Overridable Property Evaluations As IList(Of HkEvaluation)
End Class
<DataContract>
Public Partial Class AddHkEvaluationsResponse
<DataMember(Name:="AcceptedGuids")>
Public Overridable Property AcceptedGuids As IList(Of Guid)
<DataMember(Name:="ResponseStatus")>
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
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: heat-syke-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>