zpa

package
v0.0.0-...-edef700 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlannedExam

type PlannedExam struct {
	Ancode            int    `json:"anCode"`
	Module            string `json:"module"`
	MainExamer        string `json:"main_examer"`
	MainExamerID      int    `json:"main_examer_id"`
	Number            int    `json:"number"`
	Date              string `json:"date"`
	Starttime         string `json:"start_time"`
	RoomName          string `json:"room"`
	IsReserve         bool   `json:"is_reserve"`
	IsHandicap        bool   `json:"is_handicap"`
	Supervisor        string `json:"supervisor"`
	Duration          int    `json:"duration"`
	ReserveSupervisor string `json:"reserve_supervisor"`
}

type SupervisorRequirements

type SupervisorRequirements struct {
	Invigilator            string   `json:"invigilator"`
	InvigilatorID          int      `json:"invigilator_id"`
	ExcludedDates          []string `json:"excluded_dates"`
	PartTime               float64  `json:"part_time"`
	OralExamsContribution  int      `json:"oral_exams_contribution"`
	LivecodingContribution int      `json:"livecoding_contribution"`
	MasterContribution     int      `json:"master_contribution"`
	FreeSemester           float64  `json:"free_semester"`
	OvertimeLastSemester   float64  `json:"overtime_last_semester"`
	OvertimeThisSemester   float64  `json:"overtime_this_semester"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ZPA

type ZPA struct {
	// contains filtered or unexported fields
}

func NewZPA

func NewZPA(baseurl string, username string, password string, semester string) (*ZPA, error)

func (*ZPA) DeleteStudentRegsFromZPA

func (zpa *ZPA) DeleteStudentRegsFromZPA(ancodes []*model.ZPAAncodes) (string, []byte, error)

func (*ZPA) GetExams

func (zpa *ZPA) GetExams() []*model.ZPAExam

func (*ZPA) GetPlannedExams

func (zpa *ZPA) GetPlannedExams() ([]*PlannedExam, error)

func (*ZPA) GetStudents

func (zpa *ZPA) GetStudents(mtknr string) ([]*model.ZPAStudent, error)

func (*ZPA) GetSupervisorRequirements

func (zpa *ZPA) GetSupervisorRequirements() []*SupervisorRequirements

func (*ZPA) GetTeachers

func (zpa *ZPA) GetTeachers() []*model.Teacher

func (*ZPA) PostExams

func (zpa *ZPA) PostExams(exams []*model.ZPAExamPlan) (string, []byte, error)

func (*ZPA) PostStudentRegsToZPA

func (zpa *ZPA) PostStudentRegsToZPA(studentRegs []*model.ZPAStudentReg) (string, []byte, error)

func (*ZPA) StudentReg2ZPAStudentReg

func (zpa *ZPA) StudentReg2ZPAStudentReg(studreg *model.StudentReg) *model.ZPAStudentReg

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL