/* Options: Date: 2025-05-10 03:56: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: LocatorListingRequest.* //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 LocatorInfo implements IConvertible { // @DataMember String? Locator; // @DataMember String? StLoc; // @DataMember String? Type; // @DataMember String? Notes; // @DataMember bool? SingleItem; LocatorInfo({this.Locator,this.StLoc,this.Type,this.Notes,this.SingleItem}); LocatorInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Locator = json['Locator']; StLoc = json['StLoc']; Type = json['Type']; Notes = json['Notes']; SingleItem = json['SingleItem']; return this; } Map toJson() => { 'Locator': Locator, 'StLoc': StLoc, 'Type': Type, 'Notes': Notes, 'SingleItem': SingleItem }; getTypeName() => "LocatorInfo"; 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 LocatorListingResponse extends BaseResponse implements IConvertible { // @DataMember List? LocatorListing; LocatorListingResponse({this.LocatorListing}); LocatorListingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LocatorListing = JsonConverters.fromJson(json['LocatorListing'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'LocatorListing': JsonConverters.toJson(LocatorListing,'List',context!) }); getTypeName() => "LocatorListingResponse"; TypeContext? context = _ctx; } /** * LocatorListingRequires active-e Inventory Service. */ // @Route("/LocatorListing", "GET") // @DataContract class LocatorListingRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * If sent, only Locators for the given location will be returned */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only Locators for the given location will be returned", Format="int64", Name="LocationId", ParameterType="query") int? LocationId; /** * Can be INV (Inventory) or TIC (Ticket). Defaults to INV. */ // @DataMember // @ApiMember(Description="Can be INV (Inventory) or TIC (Ticket). Defaults to INV.", Name="Type", ParameterType="query") String? Type; LocatorListingRequest({this.LocationId,this.Type}); LocatorListingRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LocationId = json['LocationId']; Type = json['Type']; return this; } Map toJson() => super.toJson()..addAll({ 'LocationId': LocationId, 'Type': Type }); createResponse() => LocatorListingResponse(); getResponseTypeName() => "LocatorListingResponse"; getTypeName() => "LocatorListingRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'LocatorInfo': TypeInfo(TypeOf.Class, create:() => LocatorInfo()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'LocatorListingResponse': TypeInfo(TypeOf.Class, create:() => LocatorListingResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LocatorListingRequest': TypeInfo(TypeOf.Class, create:() => LocatorListingRequest()), });