POST, GET | /api/GetInstructorSchedule |
---|
"use strict";
export class BaseRequest {
/** @param {{ApiKey?:string,OAuthToken?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description This is your AIM API Key provided by Tri-Tech */
ApiKey;
/** @type {string} */
OAuthToken;
}
export class BaseSecureRequest extends BaseRequest {
/** @param {{Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Token;
/** @type {string} */
DeviceId;
/** @type {string} */
AppId;
}
export class BaseResponseResult {
/** @param {{StatusCode?:string,Login?:string,ErrorCode?:string,ErrorDisplayText?:string,ErrorMessage?:string,DomainName?:string,IpAddress?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
StatusCode;
/** @type {string} */
Login;
/** @type {string} */
ErrorCode;
/** @type {string} */
ErrorDisplayText;
/** @type {string} */
ErrorMessage;
/** @type {string} */
DomainName;
/** @type {string} */
IpAddress;
}
export class BaseResponse {
/** @param {{Status?:BaseResponseResult}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {BaseResponseResult} */
Status;
}
export class StudentInfoGeneric {
/** @param {{StudentName?:string,CustomerName?:string,CustomerNumber?:string,CustomerEmail?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
StudentName;
/** @type {string} */
CustomerName;
/** @type {string} */
CustomerNumber;
/** @type {string} */
CustomerEmail;
}
export class StudentInfoScheduleGeneric extends StudentInfoGeneric {
/** @param {{ClassMemberId?:number,MarkedPresent?:boolean,MarkedAbsent?:boolean,StudentName?:string,CustomerName?:string,CustomerNumber?:string,CustomerEmail?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
ClassMemberId;
/** @type {boolean} */
MarkedPresent;
/** @type {boolean} */
MarkedAbsent;
}
export class ScheduleGeneric {
/** @param {{IsAvailability?:boolean,Location?:string,StartTime?:string,EndTime?:string,Desc?:string,ApptDesc?:string,Color?:string,Area?:string,Virtual?:boolean,Students?:StudentInfoScheduleGeneric[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
IsAvailability;
/** @type {string} */
Location;
/** @type {string} */
StartTime;
/** @type {string} */
EndTime;
/** @type {string} */
Desc;
/** @type {string} */
ApptDesc;
/** @type {string} */
Color;
/** @type {string} */
Area;
/** @type {boolean} */
Virtual;
/** @type {StudentInfoScheduleGeneric[]} */
Students;
}
export class InstructorTimeInfo {
/** @param {{StartHour?:number,StartMinute?:number,EndHour?:number,EndMinute?:number,Increment?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
StartHour;
/** @type {number} */
StartMinute;
/** @type {number} */
EndHour;
/** @type {number} */
EndMinute;
/** @type {number} */
Increment;
}
export class InstructorAvailabilityInfo {
/** @param {{Sunday?:boolean,Monday?:boolean,Tuesday?:boolean,Wednesday?:boolean,Thursday?:boolean,Friday?:boolean,Saturday?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
Sunday;
/** @type {boolean} */
Monday;
/** @type {boolean} */
Tuesday;
/** @type {boolean} */
Wednesday;
/** @type {boolean} */
Thursday;
/** @type {boolean} */
Friday;
/** @type {boolean} */
Saturday;
}
export class InstructorInfo {
/** @param {{Id?:number,Name?:string,Email?:string,Topic?:string,AvailabilityInfo?:InstructorAvailabilityInfo}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Email;
/** @type {string} */
Topic;
/** @type {InstructorAvailabilityInfo} */
AvailabilityInfo;
}
export class ScheduleByInstructor {
/** @param {{InstructorInfo?:InstructorInfo,InstructorSchedule?:ScheduleGeneric[],InstructorTimeInfo?:InstructorTimeInfo}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {InstructorInfo} */
InstructorInfo;
/** @type {ScheduleGeneric[]} */
InstructorSchedule;
/** @type {InstructorTimeInfo} */
InstructorTimeInfo;
}
export class GetInstructorScheduleResponse extends BaseResponse {
/** @param {{InstructorSchedule?:ScheduleGeneric[],InstructorTimeInfo?:InstructorTimeInfo,ScheduleByInstructor?:ScheduleByInstructor[],Status?:BaseResponseResult}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {ScheduleGeneric[]} */
InstructorSchedule;
/** @type {InstructorTimeInfo} */
InstructorTimeInfo;
/** @type {ScheduleByInstructor[]} */
ScheduleByInstructor;
}
export class GetInstructorScheduleRequest extends BaseSecureRequest {
/** @param {{InstructorId?:number,DateFrom?:string,DateTo?:string,IncludeAvailability?:boolean,Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
InstructorId;
/** @type {?string} */
DateFrom;
/** @type {?string} */
DateTo;
/** @type {?boolean} */
IncludeAvailability;
}
JavaScript GetInstructorScheduleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/GetInstructorSchedule HTTP/1.1
Host: active-ewebservice.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetInstructorScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
<ApiKey>String</ApiKey>
<OAuthToken>String</OAuthToken>
<AppId>String</AppId>
<DeviceId>String</DeviceId>
<Token>String</Token>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<IncludeAvailability>false</IncludeAvailability>
<InstructorId>0</InstructorId>
</GetInstructorScheduleRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetInstructorScheduleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService"> <Status> <DomainName>String</DomainName> <ErrorCode>String</ErrorCode> <ErrorDisplayText>String</ErrorDisplayText> <ErrorMessage>String</ErrorMessage> <IpAddress>String</IpAddress> <Login>String</Login> <StatusCode>String</StatusCode> </Status> <InstructorSchedule xmlns:d2p1="http://schemas.datacontract.org/2004/07/AIM"> <d2p1:ScheduleGeneric i:nil="true" /> </InstructorSchedule> <InstructorTimeInfo i:nil="true" /> <ScheduleByInstructor> <ScheduleByInstructor> <InstructorInfo> <AvailabilityInfo> <Friday>false</Friday> <Monday>false</Monday> <Saturday>false</Saturday> <Sunday>false</Sunday> <Thursday>false</Thursday> <Tuesday>false</Tuesday> <Wednesday>false</Wednesday> </AvailabilityInfo> <Email>String</Email> <Id>0</Id> <Name>String</Name> <Topic>String</Topic> </InstructorInfo> <InstructorSchedule xmlns:d4p1="http://schemas.datacontract.org/2004/07/AIM"> <d4p1:ScheduleGeneric i:nil="true" /> </InstructorSchedule> <InstructorTimeInfo i:nil="true" /> </ScheduleByInstructor> </ScheduleByInstructor> </GetInstructorScheduleResponse>