/* Options: Date: 2026-10-20 14:16:19 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://inea-servamw.eras-online.de //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetHkEvaluations.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract abstract class Eras2AppServiceModelBase { // @DataMember(Name="UserId") String? UserId; Eras2AppServiceModelBase({this.UserId}); Eras2AppServiceModelBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['userId']; return this; } Map toJson() => { 'userId': UserId }; getTypeName() => "Eras2AppServiceModelBase"; TypeContext? context = _ctx; } // @DataContract class HkEvaluationParameter implements IConvertible { // @DataMember(Name="RadiatisId") int? RadiatisId; // @DataMember(Name="Code") String? Code; // @DataMember(Name="Value") String? Value; HkEvaluationParameter({this.RadiatisId,this.Code,this.Value}); HkEvaluationParameter.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RadiatisId = json['radiatisId']; Code = json['code']; Value = json['value']; return this; } Map toJson() => { 'radiatisId': RadiatisId, 'code': Code, 'value': Value }; getTypeName() => "HkEvaluationParameter"; TypeContext? context = _ctx; } // @DataContract class HkEvaluationAttribute implements IConvertible { // @DataMember(Name="RadiatisId") int? RadiatisId; // @DataMember(Name="Code") String? Code; // @DataMember(Name="Value") int? Value; HkEvaluationAttribute({this.RadiatisId,this.Code,this.Value}); HkEvaluationAttribute.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RadiatisId = json['radiatisId']; Code = json['code']; Value = json['value']; return this; } Map toJson() => { 'radiatisId': RadiatisId, 'code': Code, 'value': Value }; getTypeName() => "HkEvaluationAttribute"; TypeContext? context = _ctx; } // @DataContract class HkEvaluation implements IConvertible { // @DataMember(Name="Guid") String? Guid; // @DataMember(Name="DeviceGuid") String? DeviceGuid; // @DataMember(Name="DeviceNumber") String? DeviceNumber; // @DataMember(Name="NutzeinheitNumber") String? NutzeinheitNumber; // @DataMember(Name="NutzeinheitAddress") String? NutzeinheitAddress; // @DataMember(Name="HkveModel") String? HkveModel; // @DataMember(Name="HkveModelCustom") String? HkveModelCustom; // @DataMember(Name="MountingPoint") String? MountingPoint; // @DataMember(Name="MountingPointCustom") String? MountingPointCustom; // @DataMember(Name="GroupId") int? GroupId; // @DataMember(Name="GroupName") String? GroupName; // @DataMember(Name="TopMatch") String? TopMatch; // @DataMember(Name="RadiatisRadiatorId") int? RadiatisRadiatorId; // @DataMember(Name="ModelNoteReference") String? ModelNoteReference; // @DataMember(Name="Match") int? Match; // @DataMember(Name="KcValue") double? KcValue; // @DataMember(Name="KqValue") double? KqValue; // @DataMember(Name="Created") DateTime? Created; // @DataMember(Name="LastModified") DateTime? LastModified; // @DataMember(Name="TechnicianUserId") String? TechnicianUserId; // @DataMember(Name="ReceivedAt") DateTime? ReceivedAt; // @DataMember(Name="Parameters") List? Parameters; // @DataMember(Name="Attributes") List? Attributes; HkEvaluation({this.Guid,this.DeviceGuid,this.DeviceNumber,this.NutzeinheitNumber,this.NutzeinheitAddress,this.HkveModel,this.HkveModelCustom,this.MountingPoint,this.MountingPointCustom,this.GroupId,this.GroupName,this.TopMatch,this.RadiatisRadiatorId,this.ModelNoteReference,this.Match,this.KcValue,this.KqValue,this.Created,this.LastModified,this.TechnicianUserId,this.ReceivedAt,this.Parameters,this.Attributes}); HkEvaluation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['guid']; DeviceGuid = json['deviceGuid']; DeviceNumber = json['deviceNumber']; NutzeinheitNumber = json['nutzeinheitNumber']; NutzeinheitAddress = json['nutzeinheitAddress']; HkveModel = json['hkveModel']; HkveModelCustom = json['hkveModelCustom']; MountingPoint = json['mountingPoint']; MountingPointCustom = json['mountingPointCustom']; GroupId = json['groupId']; GroupName = json['groupName']; TopMatch = json['topMatch']; RadiatisRadiatorId = json['radiatisRadiatorId']; ModelNoteReference = json['modelNoteReference']; Match = json['match']; KcValue = JsonConverters.toDouble(json['kcValue']); KqValue = JsonConverters.toDouble(json['kqValue']); Created = JsonConverters.fromJson(json['created'],'DateTime',context!); LastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); TechnicianUserId = json['technicianUserId']; ReceivedAt = JsonConverters.fromJson(json['receivedAt'],'DateTime',context!); Parameters = JsonConverters.fromJson(json['parameters'],'List',context!); Attributes = JsonConverters.fromJson(json['attributes'],'List',context!); return this; } Map toJson() => { 'guid': Guid, 'deviceGuid': DeviceGuid, 'deviceNumber': DeviceNumber, 'nutzeinheitNumber': NutzeinheitNumber, 'nutzeinheitAddress': NutzeinheitAddress, 'hkveModel': HkveModel, 'hkveModelCustom': HkveModelCustom, 'mountingPoint': MountingPoint, 'mountingPointCustom': MountingPointCustom, 'groupId': GroupId, 'groupName': GroupName, 'topMatch': TopMatch, 'radiatisRadiatorId': RadiatisRadiatorId, 'modelNoteReference': ModelNoteReference, 'match': Match, 'kcValue': KcValue, 'kqValue': KqValue, 'created': JsonConverters.toJson(Created,'DateTime',context!), 'lastModified': JsonConverters.toJson(LastModified,'DateTime',context!), 'technicianUserId': TechnicianUserId, 'receivedAt': JsonConverters.toJson(ReceivedAt,'DateTime',context!), 'parameters': JsonConverters.toJson(Parameters,'List',context!), 'attributes': JsonConverters.toJson(Attributes,'List',context!) }; getTypeName() => "HkEvaluation"; TypeContext? context = _ctx; } // @DataContract class GetHkEvaluationsResponse implements IConvertible { // @DataMember(Name="Evaluations") List? Evaluations; // @DataMember(Name="ResponseStatus") ResponseStatus? ResponseStatus; GetHkEvaluationsResponse({this.Evaluations,this.ResponseStatus}); GetHkEvaluationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Evaluations = JsonConverters.fromJson(json['evaluations'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'evaluations': JsonConverters.toJson(Evaluations,'List',context!), 'responseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetHkEvaluationsResponse"; TypeContext? context = _ctx; } // @Route("/App/{UserId}/HkEvaluations", "GET") // @DataContract class GetHkEvaluations extends Eras2AppServiceModelBase implements IReturn, IConvertible, IGet { // @DataMember(Name="DeviceGuids") List? DeviceGuids; // @DataMember(Name="ReceivedSince") DateTime? ReceivedSince; // @DataMember(Name="LatestPerDeviceOnly") bool? LatestPerDeviceOnly; GetHkEvaluations({this.DeviceGuids,this.ReceivedSince,this.LatestPerDeviceOnly}); GetHkEvaluations.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DeviceGuids = JsonConverters.fromJson(json['deviceGuids'],'List',context!); ReceivedSince = JsonConverters.fromJson(json['receivedSince'],'DateTime',context!); LatestPerDeviceOnly = json['latestPerDeviceOnly']; return this; } Map toJson() => super.toJson()..addAll({ 'deviceGuids': JsonConverters.toJson(DeviceGuids,'List',context!), 'receivedSince': JsonConverters.toJson(ReceivedSince,'DateTime',context!), 'latestPerDeviceOnly': LatestPerDeviceOnly }); createResponse() => GetHkEvaluationsResponse(); getResponseTypeName() => "GetHkEvaluationsResponse"; getTypeName() => "GetHkEvaluations"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'inea_servamw.eras_online.de', types: { 'Eras2AppServiceModelBase': TypeInfo(TypeOf.AbstractClass), 'HkEvaluationParameter': TypeInfo(TypeOf.Class, create:() => HkEvaluationParameter()), 'HkEvaluationAttribute': TypeInfo(TypeOf.Class, create:() => HkEvaluationAttribute()), 'HkEvaluation': TypeInfo(TypeOf.Class, create:() => HkEvaluation()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetHkEvaluationsResponse': TypeInfo(TypeOf.Class, create:() => GetHkEvaluationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetHkEvaluations': TypeInfo(TypeOf.Class, create:() => GetHkEvaluations()), });