Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SigaaCourseStudent

Course in the student's view.

Hierarchy

  • SigaaCourseStudent

Implements

Index

Constructors

constructor

Properties

Readonly code

code: string

Course name abbreviation.

Código (abreviação) da turma.

Private currentCoursePage

currentCoursePage: string = 'Principal'

Optional currentPageCache

currentPageCache: Page

Private form

form: SigaaForm

Readonly id

id: string

Single string indicating the course.

String única indicando o curso.

Private lessonParser

lessonParser: LessonParser

Readonly numberOfStudents

numberOfStudents: number

Number of students, is 0 if the course of the period is not the current one.

Readonly period

period: string

Course Semester.

Private resources

Readonly schedule

schedule: string

Course Schedule.

Horário das aulas.

Readonly title

title: string

Course title (Nome da turma).

Methods

getAbsence

Private getCourseSubMenu

  • getCourseSubMenu(buttonLabel: string, retry?: boolean): Promise<Page>

getExamCalendar

  • getExamCalendar(): Promise<Exam[]>

getFiles

  • getFiles(): Promise<File[]>

getForums

getGrades

  • getGrades(retry?: boolean): Promise<GradeGroup[]>

getHomeworks

getLessons

  • getLessons(): Promise<Lesson[]>

getMembers

getNews

  • getNews(): Promise<News[]>

getQuizzes

  • getQuizzes(): Promise<Quiz[]>

Private getRightSidebarCard

  • getRightSidebarCard(page: Page, cardTitle: string): Promise<Cheerio>

getSurveys

getSyllabus

getWebContents

Private requestCoursePage

  • requestCoursePage(useCache?: boolean): Promise<Page>
  • Request the course page using requestCoursePageUsingForm, fallback to requestCoursePageUsingId.

    Parameters

    • useCache: boolean = true

    Returns Promise<Page>

    Response page.

Private requestCoursePageUsingForm

  • requestCoursePageUsingForm(useCache?: boolean): Promise<Page>
  • Request the course page using the course POST Form, it is faster than requestCoursePageUsingId, but don`t works if the form is invalid or expired.

    Parameters

    • useCache: boolean = true

    Returns Promise<Page>

Private requestCoursePageUsingId

  • requestCoursePageUsingId(): Promise<Page>

Private verifyIfCoursePageIsValid

  • verifyIfCoursePageIsValid(page: Page, buttonLabel: string): void

Static Private getLessonPageType

  • getLessonPageType(page: Page): "list" | "paged" | "unknown"

Generated using TypeDoc