Esempio n. 1
0
 /// <summary>
 /// Begins an Async request to get the student's Timetable
 /// </summary>
 public void GetTimetable()
 {
     if (!Authenticated)
     {
         ApiExceptionThrown.Raise(this, new ApiExceptionEventArgs(ApiExceptionDetails.NotAuthenticated));
     }
     else
     {
         if (!Authenticated) throw new ApiException(ApiExceptionDetails.NotAuthenticated);
         ApiRequest timetableRequest = new ApiRequest(AuthInfo, ApiRequest.GetTimetableData);
         timetableRequest.BeginApiRequest(TimetableCallback);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Begins an Async request to get the student's details
 /// </summary>
 public void GetDetails()
 {
     if (!Authenticated)
     {
         ApiExceptionThrown.Raise(this, new ApiExceptionEventArgs(ApiExceptionDetails.NotAuthenticated));
     }
     else
     {
         ApiRequest basicInfoRequest = new ApiRequest(AuthInfo, ApiRequest.GetStudentDetails);
         basicInfoRequest.BeginApiRequest(BasicInfoCallback);
     }
 }