/* Options: Date: 2025-05-10 01:55:04 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: GetSchedulingLocationsRequest.* //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 LocationInfo implements IConvertible { // @DataMember int? Id; // @DataMember String? Desc; // @DataMember String? ShortDesc; // @DataMember String? Region; // @DataMember double? Latitude; // @DataMember double? Longitude; // @DataMember String? InStorePickup; // @DataMember bool? Active; // @DataMember int? CashSaleAcct; LocationInfo({this.Id,this.Desc,this.ShortDesc,this.Region,this.Latitude,this.Longitude,this.InStorePickup,this.Active,this.CashSaleAcct}); LocationInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Desc = json['Desc']; ShortDesc = json['ShortDesc']; Region = json['Region']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); InStorePickup = json['InStorePickup']; Active = json['Active']; CashSaleAcct = json['CashSaleAcct']; return this; } Map toJson() => { 'Id': Id, 'Desc': Desc, 'ShortDesc': ShortDesc, 'Region': Region, 'Latitude': Latitude, 'Longitude': Longitude, 'InStorePickup': InStorePickup, 'Active': Active, 'CashSaleAcct': CashSaleAcct }; getTypeName() => "LocationInfo"; 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 GetSchedulingLocationsResponse extends BaseResponse implements IConvertible { // @DataMember List? Locations; GetSchedulingLocationsResponse({this.Locations}); GetSchedulingLocationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Locations = JsonConverters.fromJson(json['Locations'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Locations': JsonConverters.toJson(Locations,'List',context!) }); getTypeName() => "GetSchedulingLocationsResponse"; TypeContext? context = _ctx; } /** * GetSchedulingLocationsRequires active-e Lesson Scheduling Service */ // @Route("/GetSchedulingLocations", "GET") // @DataContract class GetSchedulingLocationsRequest extends BaseRequest implements IReturn, IConvertible, IGet { /** * Location lookup. If sent, all other parameters will be ignored. */ // @DataMember // @ApiMember(DataType="integer", Description="Location lookup. If sent, all other parameters will be ignored.", Format="int64", Name="LocationId", ParameterType="query") int? LocationId; /** * If sent, only locations that offer this lesson type will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only locations that offer this lesson type will be returned.", Format="int64", Name="TypeId", ParameterType="query") int? TypeId; /** * If sent, only locations that offer lessons of this grouping will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only locations that offer lessons of this grouping will be returned.", Format="int64", Name="GroupingId", ParameterType="query") int? GroupingId; /** * If sent, only locations where the sent instructor teaches will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only locations where the sent instructor teaches will be returned.", Format="int32", Name="InstructorId", ParameterType="query") int? InstructorId; // @DataMember bool? IncludeInactiveLocations; GetSchedulingLocationsRequest({this.LocationId,this.TypeId,this.GroupingId,this.InstructorId,this.IncludeInactiveLocations}); GetSchedulingLocationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LocationId = json['LocationId']; TypeId = json['TypeId']; GroupingId = json['GroupingId']; InstructorId = json['InstructorId']; IncludeInactiveLocations = json['IncludeInactiveLocations']; return this; } Map toJson() => super.toJson()..addAll({ 'LocationId': LocationId, 'TypeId': TypeId, 'GroupingId': GroupingId, 'InstructorId': InstructorId, 'IncludeInactiveLocations': IncludeInactiveLocations }); createResponse() => GetSchedulingLocationsResponse(); getResponseTypeName() => "GetSchedulingLocationsResponse"; getTypeName() => "GetSchedulingLocationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'LocationInfo': TypeInfo(TypeOf.Class, create:() => LocationInfo()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetSchedulingLocationsResponse': TypeInfo(TypeOf.Class, create:() => GetSchedulingLocationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetSchedulingLocationsRequest': TypeInfo(TypeOf.Class, create:() => GetSchedulingLocationsRequest()), });