Class AppServices
Network services helper.
Inherited Members
Namespace: EduCATS.Networking.AppServices
Assembly: EduCATS.dll
Syntax
public static class AppServices
Methods
AnswerQuestionAndGetNext(TestAnswerPostModel)
Answer question request.
Declaration
public static Task<object> AnswerQuestionAndGetNext(TestAnswerPostModel answer)
Parameters
Type | Name | Description |
---|---|---|
TestAnswerPostModel | answer | Answer data. |
Returns
Type | Description |
---|---|
Task<object> | String. |
DeleteAccount()
Fetch account delete request.
Declaration
public static Task<object> DeleteAccount()
Returns
Type | Description |
---|---|
Task<object> |
GetAccountData()
Declaration
public static Task<object> GetAccountData()
Returns
Type | Description |
---|---|
Task<object> |
GetAvailableTests(int, int)
Fetch tests request.
Declaration
public static Task<object> GetAvailableTests(int subjectId, int userId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | userId | User ID. |
Returns
Type | Description |
---|---|
Task<object> | List of test data. |
GetConceptCascade(int)
Fetch Electronic Educational Methodological Complexes concept cascade request.
Declaration
public static Task<object> GetConceptCascade(int elementId)
Parameters
Type | Name | Description |
---|---|---|
int | elementId | Root element ID. |
Returns
Type | Description |
---|---|
Task<object> | Concept data. |
GetConceptTree(int)
Fetch Electronic Educational Methodological Complexes concept tree request.
Declaration
public static Task<object> GetConceptTree(int elementId)
Parameters
Type | Name | Description |
---|---|---|
int | elementId | Root element ID. |
Returns
Type | Description |
---|---|
Task<object> | Concept data. |
GetFiles(int)
Fetch files request.
Declaration
public static Task<object> GetFiles(int subjectId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
Returns
Type | Description |
---|---|
Task<object> | Files data. |
GetFilesDetails(string)
Declaration
public static Task<object> GetFilesDetails(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri |
Returns
Type | Description |
---|---|
Task<object> |
GetGroupInfo(string)
Declaration
public static Task<object> GetGroupInfo(string groupName)
Parameters
Type | Name | Description |
---|---|---|
string | groupName |
Returns
Type | Description |
---|---|
Task<object> |
GetGroupsData()
Fetch groups data.
Declaration
public static Task<object> GetGroupsData()
Returns
Type | Description |
---|---|
Task<object> | Group data. |
GetInfoLecturers(int)
Fetch lecturers request.
Declaration
public static Task<object> GetInfoLecturers(int subjectId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | SubjectId. |
Returns
Type | Description |
---|---|
Task<object> | Data lectures. |
GetLabs(int)
Declaration
public static Task<object> GetLabs(int subjectId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId |
Returns
Type | Description |
---|---|
Task<object> |
GetLabs(int, int)
Fetch laboratory works data request.
Declaration
public static Task<object> GetLabs(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | groupId | Group ID. |
Returns
Type | Description |
---|---|
Task<object> | Laboratory works data. |
GetLectures(int, int)
Fetch lectures data request.
Declaration
public static Task<object> GetLectures(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | groupId | Group ID. |
Returns
Type | Description |
---|---|
Task<object> | Lectures data. |
GetLecturesEducatsBy(int, int)
Declaration
public static Task<object> GetLecturesEducatsBy(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | |
int | groupId |
Returns
Type | Description |
---|---|
Task<object> |
GetNews(string)
Fetch news request.
Declaration
public static Task<object> GetNews(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
Returns
Type | Description |
---|---|
Task<object> | News data. |
GetNextQuestion(int, int, int)
Fetch next question request.
Declaration
public static Task<object> GetNextQuestion(int testId, int questionNumber, int userId)
Parameters
Type | Name | Description |
---|---|---|
int | testId | Test ID. |
int | questionNumber | Question number. |
int | userId | User ID. |
Returns
Type | Description |
---|---|
Task<object> | Test question data. |
GetOnlyGroups(int)
Fetch groups request.
Declaration
public static Task<object> GetOnlyGroups(int subjectId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
Returns
Type | Description |
---|---|
Task<object> | Group data. |
GetPractTestStatistics(int)
Declaration
public static Task<object> GetPractTestStatistics(int subjectId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId |
Returns
Type | Description |
---|---|
Task<object> |
GetPractTestStatistics(int, int)
Fetch statistics request.
Declaration
public static Task<object> GetPractTestStatistics(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | groupId | Group ID. |
Returns
Type | Description |
---|---|
Task<object> | Statistics data. |
GetPracticials(int, int)
Declaration
public static Task<object> GetPracticials(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | |
int | groupId |
Returns
Type | Description |
---|---|
Task<object> |
GetProfileInfo(string)
Fetch profile information request.
Declaration
public static Task<object> GetProfileInfo(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
Returns
Type | Description |
---|---|
Task<object> | User profile data. |
GetProfileInfoCalendar(string)
Fetch calendar data request.
Declaration
public static Task<object> GetProfileInfoCalendar(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
Returns
Type | Description |
---|---|
Task<object> | Calendar data. |
GetProfileInfoSubjects(string)
Fetch subjects request.
Declaration
public static Task<object> GetProfileInfoSubjects(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
Returns
Type | Description |
---|---|
Task<object> | Subjects data. |
GetRecommendations(int, int)
Fetch recommendations (adaptive learning) request.
Declaration
public static Task<object> GetRecommendations(int subjectId, int userId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | userId | User ID. |
Returns
Type | Description |
---|---|
Task<object> | List of recommendations data. |
GetRootConcepts(string)
Declaration
public static Task<object> GetRootConcepts(string subjectId)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId |
Returns
Type | Description |
---|---|
Task<object> |
GetRootConcepts(string, string)
Fetch Electronic Educational Methodological Complexes root concepts request.
Declaration
public static Task<object> GetRootConcepts(string userId, string subjectId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User ID. |
string | subjectId | Subject ID. |
Returns
Type | Description |
---|---|
Task<object> | Root concept data. |
GetSchedule(string)
Fetch calendar data request.
Declaration
public static Task<object> GetSchedule(string date)
Parameters
Type | Name | Description |
---|---|---|
string | date |
Returns
Type | Description |
---|---|
Task<object> | Calendar data. |
GetStatistics(int, int)
Fetch statistics request.
Declaration
public static Task<object> GetStatistics(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | groupId | Group ID. |
Returns
Type | Description |
---|---|
Task<object> | Statistics data. |
GetTest(int)
Get test information request.
Declaration
public static Task<object> GetTest(int testId)
Parameters
Type | Name | Description |
---|---|---|
int | testId | Test ID. |
Returns
Type | Description |
---|---|
Task<object> | Test details data. |
GetTestStatistics(int, int)
Fetch statistics request.
Declaration
public static Task<object> GetTestStatistics(int subjectId, int groupId)
Parameters
Type | Name | Description |
---|---|---|
int | subjectId | Subject ID. |
int | groupId | Group ID. |
Returns
Type | Description |
---|---|
Task<object> | Statistics data. |
GetToken(string, string)
Declaration
public static Task<object> GetToken(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
string | username | |
string | password |
Returns
Type | Description |
---|---|
Task<object> |
GetUserAnswers(int)
Declaration
public static Task<object> GetUserAnswers(int testId)
Parameters
Type | Name | Description |
---|---|---|
int | testId |
Returns
Type | Description |
---|---|
Task<object> |
GetUserAnswers(int, int)
Fetch test answers request.
Declaration
public static Task<object> GetUserAnswers(int userId, int testId)
Parameters
Type | Name | Description |
---|---|---|
int | userId | User ID. |
int | testId | Test ID. |
Returns
Type | Description |
---|---|
Task<object> | List of results data. |
Login(string, string)
Authorize request.
Declaration
public static Task<object> Login(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
string | username | Username. |
string | password | Password. |
Returns
Type | Description |
---|---|
Task<object> | User data. |