/* Options: Date: 2025-05-10 04:12:25 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: SearchContactManagementRequest.* //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 ContactManagementRecord implements IConvertible { // @DataMember String? Ref; // @DataMember DateTime? DateTime; // @DataMember String? Contact; // @DataMember int? CusAcct; // @DataMember int? ActionId; // @DataMember String? Status; // @DataMember DateTime? ActionDate; // @DataMember bool? PopUp; // @DataMember int? TopicId; // @DataMember String? Topic; // @DataMember bool? Closed; // @DataMember DateTime? ClosedDate; // @DataMember int? ColorValue; // @DataMember String? LanId; // @DataMember bool? FormattedNotes; // @DataMember String? Note1; // @DataMember String? Note2; // @DataMember String? Note3; // @DataMember List? Attributes; ContactManagementRecord({this.Ref,this.DateTime,this.Contact,this.CusAcct,this.ActionId,this.Status,this.ActionDate,this.PopUp,this.TopicId,this.Topic,this.Closed,this.ClosedDate,this.ColorValue,this.LanId,this.FormattedNotes,this.Note1,this.Note2,this.Note3,this.Attributes}); ContactManagementRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Ref = json['Ref']; DateTime = JsonConverters.fromJson(json['DateTime'],'DateTime',context!); Contact = json['Contact']; CusAcct = json['CusAcct']; ActionId = json['ActionId']; Status = json['Status']; ActionDate = JsonConverters.fromJson(json['ActionDate'],'DateTime',context!); PopUp = json['PopUp']; TopicId = json['TopicId']; Topic = json['Topic']; Closed = json['Closed']; ClosedDate = JsonConverters.fromJson(json['ClosedDate'],'DateTime',context!); ColorValue = json['ColorValue']; LanId = json['LanId']; FormattedNotes = json['FormattedNotes']; Note1 = json['Note1']; Note2 = json['Note2']; Note3 = json['Note3']; Attributes = JsonConverters.fromJson(json['Attributes'],'List',context!); return this; } Map toJson() => { 'Ref': Ref, 'DateTime': JsonConverters.toJson(DateTime,'DateTime',context!), 'Contact': Contact, 'CusAcct': CusAcct, 'ActionId': ActionId, 'Status': Status, 'ActionDate': JsonConverters.toJson(ActionDate,'DateTime',context!), 'PopUp': PopUp, 'TopicId': TopicId, 'Topic': Topic, 'Closed': Closed, 'ClosedDate': JsonConverters.toJson(ClosedDate,'DateTime',context!), 'ColorValue': ColorValue, 'LanId': LanId, 'FormattedNotes': FormattedNotes, 'Note1': Note1, 'Note2': Note2, 'Note3': Note3, 'Attributes': JsonConverters.toJson(Attributes,'List',context!) }; getTypeName() => "ContactManagementRecord"; 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 SearchContactManagementResponse extends BaseResponse implements IConvertible { // @DataMember List? ContactManagementRecords; SearchContactManagementResponse({this.ContactManagementRecords}); SearchContactManagementResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ContactManagementRecords = JsonConverters.fromJson(json['ContactManagementRecords'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ContactManagementRecords': JsonConverters.toJson(ContactManagementRecords,'List',context!) }); getTypeName() => "SearchContactManagementResponse"; TypeContext? context = _ctx; } /** * SearchContactManagement web service. */ // @Route("/SearchContactManagement", "POST, GET") // @DataContract class SearchContactManagementRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember bool? FormattedNotes; /** * If sent, all other search parameters will be ignored. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, all other search parameters will be ignored.", Name="Ref", ParameterType="query") String? Ref; // @DataMember int? Acct; // @DataMember DateTime? DateFrom; // @DataMember DateTime? DateTo; // @DataMember bool? IncludeClosed; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="SearchString", ParameterType="query") String? SearchString; // @DataMember int? ActionId; SearchContactManagementRequest({this.FormattedNotes,this.Ref,this.Acct,this.DateFrom,this.DateTo,this.IncludeClosed,this.SearchString,this.ActionId}); SearchContactManagementRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FormattedNotes = json['FormattedNotes']; Ref = json['Ref']; Acct = json['Acct']; DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); IncludeClosed = json['IncludeClosed']; SearchString = json['SearchString']; ActionId = json['ActionId']; return this; } Map toJson() => super.toJson()..addAll({ 'FormattedNotes': FormattedNotes, 'Ref': Ref, 'Acct': Acct, 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'IncludeClosed': IncludeClosed, 'SearchString': SearchString, 'ActionId': ActionId }); createResponse() => SearchContactManagementResponse(); getResponseTypeName() => "SearchContactManagementResponse"; getTypeName() => "SearchContactManagementRequest"; 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()), 'ContactManagementRecord': TypeInfo(TypeOf.Class, create:() => ContactManagementRecord()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'SearchContactManagementResponse': TypeInfo(TypeOf.Class, create:() => SearchContactManagementResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchContactManagementRequest': TypeInfo(TypeOf.Class, create:() => SearchContactManagementRequest()), });