regis

<back to all web services

SectionsTimetableRequest

Requires Authentication
Required permission:ReadSections
The following routes are available for this service:
POST/Sections/Timetable/{reporting_term}
import 'package:servicestack/servicestack.dart';

class SectionTimetableNoteResponse implements IConvertible
{
    String? heading;
    String? body;

    SectionTimetableNoteResponse({this.heading,this.body});
    SectionTimetableNoteResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        heading = json['heading'];
        body = json['body'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'heading': heading,
        'body': body
    };

    getTypeName() => "SectionTimetableNoteResponse";
    TypeContext? context = _ctx;
}

class SectionTimetableInstructorResponse implements IConvertible
{
    String? instructorName;
    String? instructorSlug;

    SectionTimetableInstructorResponse({this.instructorName,this.instructorSlug});
    SectionTimetableInstructorResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        instructorName = json['instructorName'];
        instructorSlug = json['instructorSlug'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'instructorName': instructorName,
        'instructorSlug': instructorSlug
    };

    getTypeName() => "SectionTimetableInstructorResponse";
    TypeContext? context = _ctx;
}

class SectionTimetableResponse implements IConvertible
{
    String? time;
    int? sortTime;
    String? course;
    String? courseSlug;
    String? desc;
    List<SectionTimetableInstructorResponse>? instructors;
    String? registrationInfo;
    String? room;
    double? creditMinimum;
    double? creditMaximum;
    double? auditMinimum;
    double? auditMaximum;

    SectionTimetableResponse({this.time,this.sortTime,this.course,this.courseSlug,this.desc,this.instructors,this.registrationInfo,this.room,this.creditMinimum,this.creditMaximum,this.auditMinimum,this.auditMaximum});
    SectionTimetableResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        time = json['time'];
        sortTime = json['sortTime'];
        course = json['course'];
        courseSlug = json['courseSlug'];
        desc = json['desc'];
        instructors = JsonConverters.fromJson(json['instructors'],'List<SectionTimetableInstructorResponse>',context!);
        registrationInfo = json['registrationInfo'];
        room = json['room'];
        creditMinimum = JsonConverters.toDouble(json['creditMinimum']);
        creditMaximum = JsonConverters.toDouble(json['creditMaximum']);
        auditMinimum = JsonConverters.toDouble(json['auditMinimum']);
        auditMaximum = JsonConverters.toDouble(json['auditMaximum']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'time': time,
        'sortTime': sortTime,
        'course': course,
        'courseSlug': courseSlug,
        'desc': desc,
        'instructors': JsonConverters.toJson(instructors,'List<SectionTimetableInstructorResponse>',context!),
        'registrationInfo': registrationInfo,
        'room': room,
        'creditMinimum': creditMinimum,
        'creditMaximum': creditMaximum,
        'auditMinimum': auditMinimum,
        'auditMaximum': auditMaximum
    };

    getTypeName() => "SectionTimetableResponse";
    TypeContext? context = _ctx;
}

class SectionsTimetableResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    String? term;
    List<SectionTimetableNoteResponse>? notes;
    List<SectionTimetableResponse>? monday;
    List<SectionTimetableResponse>? tuesday;
    List<SectionTimetableResponse>? wednesday;
    List<SectionTimetableResponse>? thursday;
    List<SectionTimetableResponse>? friday;
    List<SectionTimetableResponse>? saturday;
    List<SectionTimetableResponse>? sunday;

    SectionsTimetableResponse({this.responseStatus,this.term,this.notes,this.monday,this.tuesday,this.wednesday,this.thursday,this.friday,this.saturday,this.sunday});
    SectionsTimetableResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        term = json['term'];
        notes = JsonConverters.fromJson(json['notes'],'List<SectionTimetableNoteResponse>',context!);
        monday = JsonConverters.fromJson(json['monday'],'List<SectionTimetableResponse>',context!);
        tuesday = JsonConverters.fromJson(json['tuesday'],'List<SectionTimetableResponse>',context!);
        wednesday = JsonConverters.fromJson(json['wednesday'],'List<SectionTimetableResponse>',context!);
        thursday = JsonConverters.fromJson(json['thursday'],'List<SectionTimetableResponse>',context!);
        friday = JsonConverters.fromJson(json['friday'],'List<SectionTimetableResponse>',context!);
        saturday = JsonConverters.fromJson(json['saturday'],'List<SectionTimetableResponse>',context!);
        sunday = JsonConverters.fromJson(json['sunday'],'List<SectionTimetableResponse>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'term': term,
        'notes': JsonConverters.toJson(notes,'List<SectionTimetableNoteResponse>',context!),
        'monday': JsonConverters.toJson(monday,'List<SectionTimetableResponse>',context!),
        'tuesday': JsonConverters.toJson(tuesday,'List<SectionTimetableResponse>',context!),
        'wednesday': JsonConverters.toJson(wednesday,'List<SectionTimetableResponse>',context!),
        'thursday': JsonConverters.toJson(thursday,'List<SectionTimetableResponse>',context!),
        'friday': JsonConverters.toJson(friday,'List<SectionTimetableResponse>',context!),
        'saturday': JsonConverters.toJson(saturday,'List<SectionTimetableResponse>',context!),
        'sunday': JsonConverters.toJson(sunday,'List<SectionTimetableResponse>',context!)
    };

    getTypeName() => "SectionsTimetableResponse";
    TypeContext? context = _ctx;
}

class SectionsTimetableRequest implements IConvertible
{
    String? reporting_term;

    SectionsTimetableRequest({this.reporting_term});
    SectionsTimetableRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        reporting_term = json['reporting_term'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'reporting_term': reporting_term
    };

    getTypeName() => "SectionsTimetableRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'SectionTimetableNoteResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableNoteResponse()),
    'SectionTimetableInstructorResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableInstructorResponse()),
    'SectionTimetableResponse': TypeInfo(TypeOf.Class, create:() => SectionTimetableResponse()),
    'List<SectionTimetableInstructorResponse>': TypeInfo(TypeOf.Class, create:() => <SectionTimetableInstructorResponse>[]),
    'SectionsTimetableResponse': TypeInfo(TypeOf.Class, create:() => SectionsTimetableResponse()),
    'List<SectionTimetableNoteResponse>': TypeInfo(TypeOf.Class, create:() => <SectionTimetableNoteResponse>[]),
    'List<SectionTimetableResponse>': TypeInfo(TypeOf.Class, create:() => <SectionTimetableResponse>[]),
    'SectionsTimetableRequest': TypeInfo(TypeOf.Class, create:() => SectionsTimetableRequest()),
});

Dart SectionsTimetableRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Sections/Timetable/{reporting_term} HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SectionsTimetableRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
  <reporting_term>String</reporting_term>
</SectionsTimetableRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SectionsTimetableResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <Friday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Friday>
  <Monday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Monday>
  <Notes>
    <SectionTimetableNoteResponse>
      <Body>String</Body>
      <Heading>String</Heading>
    </SectionTimetableNoteResponse>
  </Notes>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Saturday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Saturday>
  <Sunday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Sunday>
  <Term>String</Term>
  <Thursday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Thursday>
  <Tuesday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Tuesday>
  <Wednesday>
    <SectionTimetableResponse>
      <AuditMaximum>0</AuditMaximum>
      <AuditMinimum>0</AuditMinimum>
      <Course>String</Course>
      <CourseSlug>String</CourseSlug>
      <CreditMaximum>0</CreditMaximum>
      <CreditMinimum>0</CreditMinimum>
      <Desc>String</Desc>
      <Instructors>
        <SectionTimetableInstructorResponse>
          <InstructorName>String</InstructorName>
          <InstructorSlug>String</InstructorSlug>
        </SectionTimetableInstructorResponse>
      </Instructors>
      <RegistrationInfo>String</RegistrationInfo>
      <Room>String</Room>
      <SortTime>0</SortTime>
      <Time>String</Time>
    </SectionTimetableResponse>
  </Wednesday>
</SectionsTimetableResponse>