/* Options: Date: 2025-08-04 00:08:04 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeServices30/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SecurityOverrideRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class BaseRequest implements IConvertible { /** * This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="Header") String? ApiKey; /** * The OAuthToken token return by AeServices30 */ // @DataMember // @ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header") String? OAuthToken; /** * The Device ID of the Mobile Device. Not used for non-mobile devices. */ // @DataMember // @ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header") String? DeviceId; /** * An identifier for your integration */ // @DataMember // @ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header") String? AppId; BaseRequest({this.ApiKey,this.OAuthToken,this.DeviceId,this.AppId}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; DeviceId = json['DeviceId']; AppId = json['AppId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken, 'DeviceId': DeviceId, 'AppId': AppId }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class BaseSecureRequest extends BaseRequest implements IConvertible { /** * The Login Token return by the Security API. Required for secured calls. */ // @DataMember // @ApiMember(DataType="string", Description="The Login Token return by the Security API. Required for secured calls.", Name="Token", ParameterType="Header") String? Token; BaseSecureRequest({this.Token}); BaseSecureRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Token = json['Token']; return this; } Map toJson() => super.toJson()..addAll({ 'Token': Token }); getTypeName() => "BaseSecureRequest"; TypeContext? context = _ctx; } // @DataContract class BaseResponse implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") BaseResponseResult? Status; BaseResponse({this.Status}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = JsonConverters.fromJson(json['Status'],'BaseResponseResult',context!); return this; } Map toJson() => { 'Status': JsonConverters.toJson(Status,'BaseResponseResult',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } // @DataContract class SecurityOverrideResponse extends BaseResponse implements IConvertible { SecurityOverrideResponse(); SecurityOverrideResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "SecurityOverrideResponse"; TypeContext? context = _ctx; } /** * SecurityOverrideRequires active-e Service. */ // @Route("/SecurityOverride", "POST") // @DataContract class SecurityOverrideRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember String? LanId; // @DataMember String? SecurityId; // @DataMember int? OverrideLength; // @DataMember String? Notes; // @DataMember int? RequestId; SecurityOverrideRequest({this.LanId,this.SecurityId,this.OverrideLength,this.Notes,this.RequestId}); SecurityOverrideRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LanId = json['LanId']; SecurityId = json['SecurityId']; OverrideLength = json['OverrideLength']; Notes = json['Notes']; RequestId = json['RequestId']; return this; } Map toJson() => super.toJson()..addAll({ 'LanId': LanId, 'SecurityId': SecurityId, 'OverrideLength': OverrideLength, 'Notes': Notes, 'RequestId': RequestId }); createResponse() => SecurityOverrideResponse(); getResponseTypeName() => "SecurityOverrideResponse"; getTypeName() => "SecurityOverrideRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'SecurityOverrideResponse': TypeInfo(TypeOf.Class, create:() => SecurityOverrideResponse()), 'SecurityOverrideRequest': TypeInfo(TypeOf.Class, create:() => SecurityOverrideRequest()), });