""" Options: Date: 2024-12-29 02:24:45 Version: 8.22 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://data.regent-college.edu #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SectionsTimetableRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SectionTimetableNoteResponse: heading: Optional[str] = None body: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SectionTimetableInstructorResponse: instructor_name: Optional[str] = None instructor_slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SectionTimetableResponse: time: Optional[str] = None sort_time: Optional[int] = None course: Optional[str] = None course_slug: Optional[str] = None desc: Optional[str] = None instructors: Optional[List[SectionTimetableInstructorResponse]] = None registration_info: Optional[str] = None room: Optional[str] = None credit_minimum: Decimal = decimal.Decimal(0) credit_maximum: Decimal = decimal.Decimal(0) audit_minimum: Decimal = decimal.Decimal(0) audit_maximum: Decimal = decimal.Decimal(0) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SectionsTimetableResponse: response_status: Optional[ResponseStatus] = None term: Optional[str] = None notes: Optional[List[SectionTimetableNoteResponse]] = None monday: Optional[List[SectionTimetableResponse]] = None tuesday: Optional[List[SectionTimetableResponse]] = None wednesday: Optional[List[SectionTimetableResponse]] = None thursday: Optional[List[SectionTimetableResponse]] = None friday: Optional[List[SectionTimetableResponse]] = None saturday: Optional[List[SectionTimetableResponse]] = None sunday: Optional[List[SectionTimetableResponse]] = None # @Route("/Sections/Timetable/{reporting_term}", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SectionsTimetableRequest(IReturn[SectionsTimetableResponse]): reporting_term: Optional[str] = None