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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"reporting_term":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"term":"String","notes":[{"heading":"String","body":"String"}],"monday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"tuesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"wednesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"thursday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"friday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"saturday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"sunday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}]}