/* Options: Date: 2025-05-10 02:18:08 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: ServiceStatusRequest.* //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 ServiceStatus implements IConvertible { // @DataMember int? Id; // @DataMember String? Status; // @DataMember String? Description; // @DataMember String? Code; ServiceStatus({this.Id,this.Status,this.Description,this.Code}); ServiceStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Status = json['Status']; Description = json['Description']; Code = json['Code']; return this; } Map toJson() => { 'Id': Id, 'Status': Status, 'Description': Description, 'Code': Code }; getTypeName() => "ServiceStatus"; 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 ServiceStatusResponse extends BaseResponse implements IConvertible { // @DataMember List? Statuses; ServiceStatusResponse({this.Statuses}); ServiceStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Statuses = JsonConverters.fromJson(json['Statuses'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Statuses': JsonConverters.toJson(Statuses,'List',context!) }); getTypeName() => "ServiceStatusResponse"; TypeContext? context = _ctx; } /** * ServiceStatusRequires active-e Service Tickets Service */ // @Route("/ServiceStatus", "GET, POST") // @DataContract class ServiceStatusRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * List of Tickets to be updated. Only used for a POST request. */ // @DataMember // @ApiMember(Description="List of Tickets to be updated. Only used for a POST request.", Name="Tickets", ParameterType="query") List? Tickets; /** * New Status Id to be set to the tickets. Only used for a POST request. Send this or NewStatus. */ // @DataMember // @ApiMember(Description="New Status Id to be set to the tickets. Only used for a POST request. Send this or NewStatus.", Name="NewStatusId", ParameterType="query") int? NewStatusId; /** * New Status to be set to the tickets. Only used for a POST request. Send this or NewStatus. */ // @DataMember // @ApiMember(Description="New Status to be set to the tickets. Only used for a POST request. Send this or NewStatus.", Name="NewStatus", ParameterType="query") String? NewStatus; /** * New Locator Id to be set to the tickets. Only used for a POST request. Send this or NewLocator. */ // @DataMember // @ApiMember(Description="New Locator Id to be set to the tickets. Only used for a POST request. Send this or NewLocator.", Name="NewLocatorId", ParameterType="query") int? NewLocatorId; /** * New Locator to be set to the tickets. Only used for a POST request. Send this or NewLocatorId. */ // @DataMember // @ApiMember(Description="New Locator to be set to the tickets. Only used for a POST request. Send this or NewLocatorId.", Name="NewLocator", ParameterType="query") String? NewLocator; /** * New Master Ticket # to be set to the tickets. Only used for a POST request. */ // @DataMember // @ApiMember(Description="New Master Ticket # to be set to the tickets. Only used for a POST request.", Name="NewMasterTicket", ParameterType="query") String? NewMasterTicket; ServiceStatusRequest({this.Tickets,this.NewStatusId,this.NewStatus,this.NewLocatorId,this.NewLocator,this.NewMasterTicket}); ServiceStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Tickets = JsonConverters.fromJson(json['Tickets'],'List',context!); NewStatusId = json['NewStatusId']; NewStatus = json['NewStatus']; NewLocatorId = json['NewLocatorId']; NewLocator = json['NewLocator']; NewMasterTicket = json['NewMasterTicket']; return this; } Map toJson() => super.toJson()..addAll({ 'Tickets': JsonConverters.toJson(Tickets,'List',context!), 'NewStatusId': NewStatusId, 'NewStatus': NewStatus, 'NewLocatorId': NewLocatorId, 'NewLocator': NewLocator, 'NewMasterTicket': NewMasterTicket }); createResponse() => ServiceStatusResponse(); getResponseTypeName() => "ServiceStatusResponse"; getTypeName() => "ServiceStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'ServiceStatus': TypeInfo(TypeOf.Class, create:() => ServiceStatus()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'ServiceStatusResponse': TypeInfo(TypeOf.Class, create:() => ServiceStatusResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ServiceStatusRequest': TypeInfo(TypeOf.Class, create:() => ServiceStatusRequest()), });