C# Класс SusiParser.Parser

A class mighty enought to break trough SUSI, hooray!
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ChangeRole ( StudentRole role ) : void
GetCourses ( CoursesTakenType coursesType ) : IEnumerable

Gets a collection of CourseInfo that shows all courses that the student has passed successfully.

GetRolesPage ( ) : string
GetStudentInfo ( ) : StudentInfo

Gets information about the currently logged in student from Susi.

Login ( string username, string password ) : LoginResult

Logs the user in SUSI.

Parser ( ) : System

Приватные методы

Метод Описание
ExtractCourseInfo ( HtmlAgilityPack.HtmlNodeCollection children ) : CourseInfo
ExtractStudentInfo ( HtmlNode node ) : StudentInfo
ExtractVstate ( WebResponse response ) : void

Extracts the current value of the _VSTATE hidden field.

GetExamPage ( CoursesTakenType coursesType, bool shouldRecurse = true ) : string
GetHomePage ( ) : string
GetRoles ( string pageContent ) : IEnumerable
ReadResponseToEnd ( WebResponse response ) : string

Reads a web response and returns its content

SendRequest ( string address, string data ) : WebResponse

Sends a web request to the specified address with the given data as body content

Описание методов

ChangeRole() публичный Метод

public ChangeRole ( StudentRole role ) : void
role StudentRole
Результат void

GetCourses() публичный Метод

Gets a collection of CourseInfo that shows all courses that the student has passed successfully.
public GetCourses ( CoursesTakenType coursesType ) : IEnumerable
coursesType CoursesTakenType
Результат IEnumerable

GetRolesPage() публичный Метод

public GetRolesPage ( ) : string
Результат string

GetStudentInfo() публичный Метод

Gets information about the currently logged in student from Susi.
public GetStudentInfo ( ) : StudentInfo
Результат StudentInfo

Login() публичный Метод

Logs the user in SUSI.
public Login ( string username, string password ) : LoginResult
username string The username in Susi
password string The password in Susi
Результат LoginResult

Parser() публичный Метод

public Parser ( ) : System
Результат System