/* Options: Date: 2025-05-30 16:46:50 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: GetSchedulingCalendarRequest.* //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<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; return this; } Map<String, dynamic> toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class AvailabilityInfo implements IConvertible { // @DataMember DateTime? StartTime; // @DataMember String? StartTimeString; // @DataMember int? Length; // @DataMember int? InstructorId; // @DataMember int? LocationId; AvailabilityInfo({this.StartTime,this.StartTimeString,this.Length,this.InstructorId,this.LocationId}); AvailabilityInfo.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { StartTime = JsonConverters.fromJson(json['StartTime'],'DateTime',context!); StartTimeString = json['StartTimeString']; Length = json['Length']; InstructorId = json['InstructorId']; LocationId = json['LocationId']; return this; } Map<String, dynamic> toJson() => { 'StartTime': JsonConverters.toJson(StartTime,'DateTime',context!), 'StartTimeString': StartTimeString, 'Length': Length, 'InstructorId': InstructorId, 'LocationId': LocationId }; getTypeName() => "AvailabilityInfo"; TypeContext? context = _ctx; } // @DataContract class DayTimeInfoObj implements IConvertible { // @DataMember int? WeekDayInt; // @DataMember String? WeekDay; // @DataMember DateTime? StartTime; // @DataMember String? StartTimeString; DayTimeInfoObj({this.WeekDayInt,this.WeekDay,this.StartTime,this.StartTimeString}); DayTimeInfoObj.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { WeekDayInt = json['WeekDayInt']; WeekDay = json['WeekDay']; StartTime = JsonConverters.fromJson(json['StartTime'],'DateTime',context!); StartTimeString = json['StartTimeString']; return this; } Map<String, dynamic> toJson() => { 'WeekDayInt': WeekDayInt, 'WeekDay': WeekDay, 'StartTime': JsonConverters.toJson(StartTime,'DateTime',context!), 'StartTimeString': StartTimeString }; getTypeName() => "DayTimeInfoObj"; TypeContext? context = _ctx; } // @DataContract class GroupClassInfo implements IConvertible { // @DataMember List<DayTimeInfoObj>? DayTimeInfo; // @DataMember DateTime? StartDate; // @DataMember DateTime? EndDate; // @DataMember String? Guid; // @DataMember int? Length; // @DataMember int? InstructorId; // @DataMember int? LocationId; // @DataMember String? ClassName; // @DataMember String? ClassDesc; // @DataMember String? ClassSummary; // @DataMember int? MaxClassMembers; // @DataMember int? CurrentClassMembers; // @DataMember String? Notes; GroupClassInfo({this.DayTimeInfo,this.StartDate,this.EndDate,this.Guid,this.Length,this.InstructorId,this.LocationId,this.ClassName,this.ClassDesc,this.ClassSummary,this.MaxClassMembers,this.CurrentClassMembers,this.Notes}); GroupClassInfo.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { DayTimeInfo = JsonConverters.fromJson(json['DayTimeInfo'],'List<DayTimeInfoObj>',context!); StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!); Guid = json['Guid']; Length = json['Length']; InstructorId = json['InstructorId']; LocationId = json['LocationId']; ClassName = json['ClassName']; ClassDesc = json['ClassDesc']; ClassSummary = json['ClassSummary']; MaxClassMembers = json['MaxClassMembers']; CurrentClassMembers = json['CurrentClassMembers']; Notes = json['Notes']; return this; } Map<String, dynamic> toJson() => { 'DayTimeInfo': JsonConverters.toJson(DayTimeInfo,'List<DayTimeInfoObj>',context!), 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!), 'Guid': Guid, 'Length': Length, 'InstructorId': InstructorId, 'LocationId': LocationId, 'ClassName': ClassName, 'ClassDesc': ClassDesc, 'ClassSummary': ClassSummary, 'MaxClassMembers': MaxClassMembers, 'CurrentClassMembers': CurrentClassMembers, 'Notes': Notes }; getTypeName() => "GroupClassInfo"; TypeContext? context = _ctx; } // @DataContract class TimeIncrementByInstructor implements IConvertible { // @DataMember int? InstructorId; // @DataMember int? TimeIncrement; TimeIncrementByInstructor({this.InstructorId,this.TimeIncrement}); TimeIncrementByInstructor.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { InstructorId = json['InstructorId']; TimeIncrement = json['TimeIncrement']; return this; } Map<String, dynamic> toJson() => { 'InstructorId': InstructorId, 'TimeIncrement': TimeIncrement }; getTypeName() => "TimeIncrementByInstructor"; 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<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { Status = JsonConverters.fromJson(json['Status'],'BaseResponseResult',context!); return this; } Map<String, dynamic> toJson() => { 'Status': JsonConverters.toJson(Status,'BaseResponseResult',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } // @DataContract class GetSchedulingCalendarResponse extends BaseResponse implements IConvertible { // @DataMember List<AvailabilityInfo>? Availabilities; // @DataMember List<GroupClassInfo>? GroupClasses; // @DataMember int? TimeIncrement; // @DataMember List<TimeIncrementByInstructor>? TimeIncrementsByInstructor; GetSchedulingCalendarResponse({this.Availabilities,this.GroupClasses,this.TimeIncrement,this.TimeIncrementsByInstructor}); GetSchedulingCalendarResponse.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { super.fromMap(json); Availabilities = JsonConverters.fromJson(json['Availabilities'],'List<AvailabilityInfo>',context!); GroupClasses = JsonConverters.fromJson(json['GroupClasses'],'List<GroupClassInfo>',context!); TimeIncrement = json['TimeIncrement']; TimeIncrementsByInstructor = JsonConverters.fromJson(json['TimeIncrementsByInstructor'],'List<TimeIncrementByInstructor>',context!); return this; } Map<String, dynamic> toJson() => super.toJson()..addAll({ 'Availabilities': JsonConverters.toJson(Availabilities,'List<AvailabilityInfo>',context!), 'GroupClasses': JsonConverters.toJson(GroupClasses,'List<GroupClassInfo>',context!), 'TimeIncrement': TimeIncrement, 'TimeIncrementsByInstructor': JsonConverters.toJson(TimeIncrementsByInstructor,'List<TimeIncrementByInstructor>',context!) }); getTypeName() => "GetSchedulingCalendarResponse"; TypeContext? context = _ctx; } /** * GetSchedulingCalendarRequires active-e Lesson Scheduling Service. This API call was accidentally named GetSchedulingCalender in the past. */ // @Route("/GetSchedulingCalendar", "GET") // @Route("/GetSchedulingCalender", "GET") // @DataContract class GetSchedulingCalendarRequest extends BaseRequest implements IReturn<GetSchedulingCalendarResponse>, IConvertible, IGet { /** * The type of lessons to get a schedule for. */ // @DataMember // @ApiMember(DataType="integer", Description="The type of lessons to get a schedule for.", Format="int64", IsRequired=true, Name="TypeId", ParameterType="query") int? TypeId; /** * If sent, lessons from this date/time onward will be returned. Otherwise the current date/time is used. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, lessons from this date/time onward will be returned. Otherwise the current date/time is used.", Format="date", Name="DateFrom", ParameterType="query") String? DateFrom; /** * If sent, lessons from before this date/time will be returned. Otherwise the DateFrom plus one week is used. */ // @DataMember // @ApiMember(DataType="string", Description="If sent, lessons from before this date/time will be returned. Otherwise the DateFrom plus one week is used.", Format="date", Name="DateTo", ParameterType="query") String? DateTo; /** * If sent, only lessons taught by the sent instructor will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only lessons taught by the sent instructor will be returned.", Format="int32", Name="InstructorId", ParameterType="query") int? InstructorId; /** * If sent, lessons taught at the sent location will be returned. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, lessons taught at the sent location will be returned.", Format="int64", Name="LocationId", ParameterType="query") int? LocationId; GetSchedulingCalendarRequest({this.TypeId,this.DateFrom,this.DateTo,this.InstructorId,this.LocationId}); GetSchedulingCalendarRequest.fromJson(Map<String, dynamic> json) { fromMap(json); } fromMap(Map<String, dynamic> json) { super.fromMap(json); TypeId = json['TypeId']; DateFrom = json['DateFrom']; DateTo = json['DateTo']; InstructorId = json['InstructorId']; LocationId = json['LocationId']; return this; } Map<String, dynamic> toJson() => super.toJson()..addAll({ 'TypeId': TypeId, 'DateFrom': DateFrom, 'DateTo': DateTo, 'InstructorId': InstructorId, 'LocationId': LocationId }); createResponse() => GetSchedulingCalendarResponse(); getResponseTypeName() => "GetSchedulingCalendarResponse"; getTypeName() => "GetSchedulingCalendarRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: <String, TypeInfo> { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'AvailabilityInfo': TypeInfo(TypeOf.Class, create:() => AvailabilityInfo()), 'DayTimeInfoObj': TypeInfo(TypeOf.Class, create:() => DayTimeInfoObj()), 'GroupClassInfo': TypeInfo(TypeOf.Class, create:() => GroupClassInfo()), 'List<DayTimeInfoObj>': TypeInfo(TypeOf.Class, create:() => <DayTimeInfoObj>[]), 'TimeIncrementByInstructor': TypeInfo(TypeOf.Class, create:() => TimeIncrementByInstructor()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetSchedulingCalendarResponse': TypeInfo(TypeOf.Class, create:() => GetSchedulingCalendarResponse()), 'List<AvailabilityInfo>': TypeInfo(TypeOf.Class, create:() => <AvailabilityInfo>[]), 'List<GroupClassInfo>': TypeInfo(TypeOf.Class, create:() => <GroupClassInfo>[]), 'List<TimeIncrementByInstructor>': TypeInfo(TypeOf.Class, create:() => <TimeIncrementByInstructor>[]), 'GetSchedulingCalendarRequest': TypeInfo(TypeOf.Class, create:() => GetSchedulingCalendarRequest()), });