/* Options: Date: 2025-05-10 02:05:38 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: GetTimeSlotsRequest.* //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 TimeSlotGeneric implements IConvertible { // @DataMember int? Id; // @DataMember DateTime? DateTime; // @DataMember int? SlotsOpen; // @DataMember String? Location; // @DataMember String? Type; TimeSlotGeneric({this.Id,this.DateTime,this.SlotsOpen,this.Location,this.Type}); TimeSlotGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; DateTime = JsonConverters.fromJson(json['DateTime'],'DateTime',context!); SlotsOpen = json['SlotsOpen']; Location = json['Location']; Type = json['Type']; return this; } Map toJson() => { 'Id': Id, 'DateTime': JsonConverters.toJson(DateTime,'DateTime',context!), 'SlotsOpen': SlotsOpen, 'Location': Location, 'Type': Type }; getTypeName() => "TimeSlotGeneric"; 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 GetTimeSlotsResponse extends BaseResponse implements IConvertible { // @DataMember List? TimeSlots; GetTimeSlotsResponse({this.TimeSlots}); GetTimeSlotsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TimeSlots = JsonConverters.fromJson(json['TimeSlots'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'TimeSlots': JsonConverters.toJson(TimeSlots,'List',context!) }); getTypeName() => "GetTimeSlotsResponse"; TypeContext? context = _ctx; } /** * GetTimeSlotsRequires active-e Contracts Service, active-e Service Ticket Service, active-e Lesson Scheduling Service, active-e Vortx E-Commerce Service, or active-e 3rd Party E-Commerce Service */ // @Route("/GetTimeSlots", "POST, GET") // @DataContract class GetTimeSlotsRequest extends BaseRequest implements IReturn, IConvertible, IPost { // @DataMember DateTime? DateFrom; // @DataMember DateTime? DateTo; // @DataMember DateTime? TimeFrom; // @DataMember DateTime? TimeTo; // @DataMember String? Location; // @DataMember bool? ShowOpenSlots; // @DataMember bool? ShowReservedSlots; /** * If sent, only Time Slots of the sent type are returned. Valid options are STORE and DELIVERY. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, only Time Slots of the sent type are returned. Valid options are STORE and DELIVERY.", Name="Type", ParameterType="query") String? Type; GetTimeSlotsRequest({this.DateFrom,this.DateTo,this.TimeFrom,this.TimeTo,this.Location,this.ShowOpenSlots,this.ShowReservedSlots,this.Type}); GetTimeSlotsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); TimeFrom = JsonConverters.fromJson(json['TimeFrom'],'DateTime',context!); TimeTo = JsonConverters.fromJson(json['TimeTo'],'DateTime',context!); Location = json['Location']; ShowOpenSlots = json['ShowOpenSlots']; ShowReservedSlots = json['ShowReservedSlots']; Type = json['Type']; return this; } Map toJson() => super.toJson()..addAll({ 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'TimeFrom': JsonConverters.toJson(TimeFrom,'DateTime',context!), 'TimeTo': JsonConverters.toJson(TimeTo,'DateTime',context!), 'Location': Location, 'ShowOpenSlots': ShowOpenSlots, 'ShowReservedSlots': ShowReservedSlots, 'Type': Type }); createResponse() => GetTimeSlotsResponse(); getResponseTypeName() => "GetTimeSlotsResponse"; getTypeName() => "GetTimeSlotsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'TimeSlotGeneric': TypeInfo(TypeOf.Class, create:() => TimeSlotGeneric()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetTimeSlotsResponse': TypeInfo(TypeOf.Class, create:() => GetTimeSlotsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetTimeSlotsRequest': TypeInfo(TypeOf.Class, create:() => GetTimeSlotsRequest()), });