mirror of
https://github.com/Xevion/banner.git
synced 2025-12-11 23:09:20 -06:00
Complete full Search response struct
This commit is contained in:
57
api.go
57
api.go
@@ -192,6 +192,34 @@ func GetClassDetails(term int, crn int) *ClassDetails {
|
|||||||
return &ClassDetails{}
|
return &ClassDetails{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MeetingTimeInnerResponse struct {
|
||||||
|
Category string `json:"category"`
|
||||||
|
Class string `json:"class"`
|
||||||
|
StartDate string `json:"startDate"`
|
||||||
|
EndDate string `json:"endDate"`
|
||||||
|
BeginTime string `json:"beginTime"`
|
||||||
|
EndTime string `json:"endTime"`
|
||||||
|
Room string `json:"room"`
|
||||||
|
Term string `json:"term"`
|
||||||
|
Building string `json:"building"`
|
||||||
|
BuildingDescription string `json:"buildingDescription"`
|
||||||
|
Campus string `json:"campus"`
|
||||||
|
CampusDescription string `json:"campusDescription"`
|
||||||
|
CourseReferenceNumber string `json:"courseReferenceNumber"`
|
||||||
|
CreditHourSession float64 `json:"creditHourSession"`
|
||||||
|
HoursWeek float64 `json:"hoursWeek"`
|
||||||
|
MeetingScheduleType string `json:"meetingScheduleType"`
|
||||||
|
MeetingType string `json:"meetingType"`
|
||||||
|
MeetingTypeDescription string `json:"meetingTypeDescription"`
|
||||||
|
Monday bool `json:"monday"`
|
||||||
|
Tuesday bool `json:"tuesday"`
|
||||||
|
Wednesday bool `json:"wednesday"`
|
||||||
|
Thursday bool `json:"thursday"`
|
||||||
|
Friday bool `json:"friday"`
|
||||||
|
Saturday bool `json:"saturday"`
|
||||||
|
Sunday bool `json:"sunday"`
|
||||||
|
}
|
||||||
|
|
||||||
type SearchResult struct {
|
type SearchResult struct {
|
||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
TotalCount int `json:"totalCount"`
|
TotalCount int `json:"totalCount"`
|
||||||
@@ -223,6 +251,35 @@ type SearchResult struct {
|
|||||||
WaitCount int `json:"waitCount"`
|
WaitCount int `json:"waitCount"`
|
||||||
CrossList *string `json:"crossList"`
|
CrossList *string `json:"crossList"`
|
||||||
CrossListCapacity *int `json:"crossListCapacity"`
|
CrossListCapacity *int `json:"crossListCapacity"`
|
||||||
|
CrossListCount *int `json:"crossListCount"`
|
||||||
|
CrossListAvailable *int `json:"crossListAvailable"`
|
||||||
|
CreditHourHigh *int `json:"creditHourHigh"`
|
||||||
|
CreditHourLow *int `json:"creditHourLow"`
|
||||||
|
CreditHourIndicator *string `json:"creditHourIndicator"`
|
||||||
|
OpenSection bool `json:"openSection"`
|
||||||
|
LinkIdentifier *string `json:"linkIdentifier"`
|
||||||
|
IsSectionLinked bool `json:"isSectionLinked"`
|
||||||
|
SubjectCourse string `json:"subjectCourse"`
|
||||||
|
ReservedSeatSummary *string `json:"reservedSeatSummary"`
|
||||||
|
InstructionalMethod string `json:"instructionalMethod"`
|
||||||
|
InstructionalMethodDescription string `json:"instructionalMethodDescription"`
|
||||||
|
Faculty []struct {
|
||||||
|
BannerId string `json:"bannerId"`
|
||||||
|
Category *string `json:"category"`
|
||||||
|
Class string `json:"class"`
|
||||||
|
DisplayName string `json:"displayName"`
|
||||||
|
Email string `json:"emailAddress"`
|
||||||
|
Primary bool `json:"primaryIndicator"`
|
||||||
|
Term string `json:"term"`
|
||||||
|
} `json:"faculty"`
|
||||||
|
MeetingsFaculty []struct {
|
||||||
|
Category *string `json:"category"`
|
||||||
|
Class string `json:"class"`
|
||||||
|
CourseReferenceNumber string `json:"courseReferenceNumber"`
|
||||||
|
Faculty []struct{}
|
||||||
|
MeetingTime MeetingTimeInnerResponse `json:"meetingTime"`
|
||||||
|
Term string `json:"term"`
|
||||||
|
}
|
||||||
} `json:"data"`
|
} `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user