public static void GetMarkList(string studentId, string password, string lessonHash) { var requestObj = LessonParsings.GetMarkList(studentId, password, lessonHash); MarkListRequest.OnPopulated = (jsonResult) => { MarkListRequest.Response = LessonParsings.ParseMarkList(jsonResult); }; Global.OnRequestCalled("LessonRequests.GetMarkList", new object[] { studentId, password, lessonHash }); MarkListRequest.GetResult(requestObj); }
public static void GetLessons(string studentId, string password, int periodCode, int periodYearCode) { var requestObj = LessonParsings.GetLessons(studentId, password, periodCode, periodYearCode); LessonRequest.OnPopulated = (jsonResult) => { LessonRequest.Response = LessonParsings.ParseLessons(jsonResult); }; Global.OnRequestCalled("LessonRequests.GetLessons", new object[] { studentId, password, periodCode, periodYearCode }); LessonRequest.GetResult(requestObj); }