/* Options: Date: 2025-05-10 03:39:46 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: AddContactRecordRequest.* //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; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") String? OAuthToken; BaseRequest({this.ApiKey,this.OAuthToken}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class BaseSecureRequest extends BaseRequest implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") String? Token; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") String? DeviceId; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") String? AppId; BaseSecureRequest({this.Token,this.DeviceId,this.AppId}); BaseSecureRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Token = json['Token']; DeviceId = json['DeviceId']; AppId = json['AppId']; return this; } Map toJson() => super.toJson()..addAll({ 'Token': Token, 'DeviceId': DeviceId, 'AppId': AppId }); getTypeName() => "BaseSecureRequest"; TypeContext? context = _ctx; } // @DataContract class AttributeValuePair implements IConvertible { // @DataMember String? Name; // @DataMember String? Value; AttributeValuePair({this.Name,this.Value}); AttributeValuePair.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "AttributeValuePair"; TypeContext? context = _ctx; } // @DataContract class FileAttachment implements IConvertible { // @DataMember String? FileName; // @DataMember String? Base64Contents; FileAttachment({this.FileName,this.Base64Contents}); FileAttachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FileName = json['FileName']; Base64Contents = json['Base64Contents']; return this; } Map toJson() => { 'FileName': FileName, 'Base64Contents': Base64Contents }; getTypeName() => "FileAttachment"; 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 AddContactRecordResponse extends BaseResponse implements IConvertible { // @DataMember String? RefNumber; AddContactRecordResponse({this.RefNumber}); AddContactRecordResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RefNumber = json['RefNumber']; return this; } Map toJson() => super.toJson()..addAll({ 'RefNumber': RefNumber }); getTypeName() => "AddContactRecordResponse"; TypeContext? context = _ctx; } /** * AddContactRecord web service. */ // @Route("/AddContactRecord", "POST") // @DataContract class AddContactRecordRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember String? Contact; // @DataMember int? CustomerAcct; // @DataMember int? ActionId; // @DataMember DateTime? ActionDate; // @DataMember bool? PopUp; // @DataMember int? TopicId; // @DataMember bool? Closed; // @DataMember DateTime? ClosedDate; // @DataMember int? ColorValue; // @DataMember String? OverrideLanID; // @DataMember bool? FormattedNotes; // @DataMember String? Note1; // @DataMember String? Note2; // @DataMember String? Note3; // @DataMember List? Attributes; // @DataMember List? Attachments; AddContactRecordRequest({this.Contact,this.CustomerAcct,this.ActionId,this.ActionDate,this.PopUp,this.TopicId,this.Closed,this.ClosedDate,this.ColorValue,this.OverrideLanID,this.FormattedNotes,this.Note1,this.Note2,this.Note3,this.Attributes,this.Attachments}); AddContactRecordRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Contact = json['Contact']; CustomerAcct = json['CustomerAcct']; ActionId = json['ActionId']; ActionDate = JsonConverters.fromJson(json['ActionDate'],'DateTime',context!); PopUp = json['PopUp']; TopicId = json['TopicId']; Closed = json['Closed']; ClosedDate = JsonConverters.fromJson(json['ClosedDate'],'DateTime',context!); ColorValue = json['ColorValue']; OverrideLanID = json['OverrideLanID']; FormattedNotes = json['FormattedNotes']; Note1 = json['Note1']; Note2 = json['Note2']; Note3 = json['Note3']; Attributes = JsonConverters.fromJson(json['Attributes'],'List',context!); Attachments = JsonConverters.fromJson(json['Attachments'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Contact': Contact, 'CustomerAcct': CustomerAcct, 'ActionId': ActionId, 'ActionDate': JsonConverters.toJson(ActionDate,'DateTime',context!), 'PopUp': PopUp, 'TopicId': TopicId, 'Closed': Closed, 'ClosedDate': JsonConverters.toJson(ClosedDate,'DateTime',context!), 'ColorValue': ColorValue, 'OverrideLanID': OverrideLanID, 'FormattedNotes': FormattedNotes, 'Note1': Note1, 'Note2': Note2, 'Note3': Note3, 'Attributes': JsonConverters.toJson(Attributes,'List',context!), 'Attachments': JsonConverters.toJson(Attachments,'List',context!) }); createResponse() => AddContactRecordResponse(); getResponseTypeName() => "AddContactRecordResponse"; getTypeName() => "AddContactRecordRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'AttributeValuePair': TypeInfo(TypeOf.Class, create:() => AttributeValuePair()), 'FileAttachment': TypeInfo(TypeOf.Class, create:() => FileAttachment()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'AddContactRecordResponse': TypeInfo(TypeOf.Class, create:() => AddContactRecordResponse()), 'AddContactRecordRequest': TypeInfo(TypeOf.Class, create:() => AddContactRecordRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });