/* Options: Date: 2025-05-10 02:48:24 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: GetSchedulingInstructorsRequest.* //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; } class InstructorAvailabilityInfo implements IConvertible { // @DataMember bool? Sunday; // @DataMember bool? Monday; // @DataMember bool? Tuesday; // @DataMember bool? Wednesday; // @DataMember bool? Thursday; // @DataMember bool? Friday; // @DataMember bool? Saturday; InstructorAvailabilityInfo({this.Sunday,this.Monday,this.Tuesday,this.Wednesday,this.Thursday,this.Friday,this.Saturday}); InstructorAvailabilityInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Sunday = json['Sunday']; Monday = json['Monday']; Tuesday = json['Tuesday']; Wednesday = json['Wednesday']; Thursday = json['Thursday']; Friday = json['Friday']; Saturday = json['Saturday']; return this; } Map toJson() => { 'Sunday': Sunday, 'Monday': Monday, 'Tuesday': Tuesday, 'Wednesday': Wednesday, 'Thursday': Thursday, 'Friday': Friday, 'Saturday': Saturday }; getTypeName() => "InstructorAvailabilityInfo"; TypeContext? context = _ctx; } // @DataContract class InstructorInfo implements IConvertible { // @DataMember int? Id; // @DataMember String? Name; // @DataMember String? Email; // @DataMember String? Topic; // @DataMember InstructorAvailabilityInfo? AvailabilityInfo; InstructorInfo({this.Id,this.Name,this.Email,this.Topic,this.AvailabilityInfo}); InstructorInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Email = json['Email']; Topic = json['Topic']; AvailabilityInfo = JsonConverters.fromJson(json['AvailabilityInfo'],'InstructorAvailabilityInfo',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Email': Email, 'Topic': Topic, 'AvailabilityInfo': JsonConverters.toJson(AvailabilityInfo,'InstructorAvailabilityInfo',context!) }; getTypeName() => "InstructorInfo"; 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 GetSchedulingInstructorsResponse extends BaseResponse implements IConvertible { // @DataMember List? Instructors; GetSchedulingInstructorsResponse({this.Instructors}); GetSchedulingInstructorsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Instructors = JsonConverters.fromJson(json['Instructors'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Instructors': JsonConverters.toJson(Instructors,'List',context!) }); getTypeName() => "GetSchedulingInstructorsResponse"; TypeContext? context = _ctx; } /** * GetSchedulingInstructorsRequires active-e Lesson Scheduling Service */ // @Route("/GetSchedulingInstructors", "GET") // @DataContract class GetSchedulingInstructorsRequest extends BaseRequest implements IReturn, IConvertible, IGet { /** * Instructor ID to lookup. If sent, other parameters will be ignored. */ // @DataMember // @ApiMember(DataType="integer", Description="Instructor ID to lookup. If sent, other parameters will be ignored.", Format="int32", Name="InstructorId", ParameterType="query") int? InstructorId; /** * If sent, only instructors who teach lessons with the passed grouping will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only instructors who teach lessons with the passed grouping will be returned.", Format="int64", Name="GroupingId", ParameterType="query") int? GroupingId; /** * If sent, only instructors who teach lessons with the passed type will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only instructors who teach lessons with the passed type will be returned.", Format="int64", Name="TypeId", ParameterType="query") int? TypeId; /** * If sent, only instructors who have an availability record at the passed location will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only instructors who have an availability record at the passed location will be returned.", Format="int64", Name="LocationId", ParameterType="query") int? LocationId; /** * If true, basic Availability Info will be included in the response */ // @DataMember // @ApiMember(DataType="boolean", Description="If true, basic Availability Info will be included in the response", Name="IncludeAvailabilityInfo", ParameterType="query") bool? IncludeAvailabilityInfo; GetSchedulingInstructorsRequest({this.InstructorId,this.GroupingId,this.TypeId,this.LocationId,this.IncludeAvailabilityInfo}); GetSchedulingInstructorsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); InstructorId = json['InstructorId']; GroupingId = json['GroupingId']; TypeId = json['TypeId']; LocationId = json['LocationId']; IncludeAvailabilityInfo = json['IncludeAvailabilityInfo']; return this; } Map toJson() => super.toJson()..addAll({ 'InstructorId': InstructorId, 'GroupingId': GroupingId, 'TypeId': TypeId, 'LocationId': LocationId, 'IncludeAvailabilityInfo': IncludeAvailabilityInfo }); createResponse() => GetSchedulingInstructorsResponse(); getResponseTypeName() => "GetSchedulingInstructorsResponse"; getTypeName() => "GetSchedulingInstructorsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'InstructorAvailabilityInfo': TypeInfo(TypeOf.Class, create:() => InstructorAvailabilityInfo()), 'InstructorInfo': TypeInfo(TypeOf.Class, create:() => InstructorInfo()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetSchedulingInstructorsResponse': TypeInfo(TypeOf.Class, create:() => GetSchedulingInstructorsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetSchedulingInstructorsRequest': TypeInfo(TypeOf.Class, create:() => GetSchedulingInstructorsRequest()), });