C# 클래스 SusiParser.Parser

A class mighty enought to break trough SUSI, hooray!
파일 보기 프로젝트 열기: nikoladimitroff/SusiParser 1 사용 예제들

공개 메소드들

메소드 설명
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