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> |
GerVersionStore()
Declaration
public static Task<string> GerVersionStore()
Returns
| Type | Description |
|---|---|
| Task<string> |
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. |
GetCourseProjectConsultation(int, int)
Fetch course project consultations request.
Declaration
public static Task<object> GetCourseProjectConsultation(int count = 1000, int page = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | count | Items count. |
| int | page | Page number. |
Returns
| Type | Description |
|---|---|
| Task<object> | Consultations data. |
GetDiplomProjectConsultation(int, int)
Fetch diploma project consultations request.
Declaration
public static Task<object> GetDiplomProjectConsultation(int count = 1000, int page = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | count | Items count. |
| int | page | Page number. |
Returns
| Type | Description |
|---|---|
| Task<object> | Consultations 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(IEnumerable<string>)
Declaration
public static Task<object> GetFilesDetails(IEnumerable<string> values)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | values |
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, 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. |
GetLabs(int)
Declaration
public static Task<object> GetLabs(int subjectId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subjectId |
Returns
| Type | Description |
|---|---|
| Task<object> |
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. |
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> |
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. |
GetPractTestStatistics(int)
Declaration
public static Task<object> GetPractTestStatistics(int subjectId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subjectId |
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. |
GetProfileInfoById(int)
Fetch profile info by id request.
Declaration
public static Task<object> GetProfileInfoById(int userId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | userId | User id. |
Returns
| Type | Description |
|---|---|
| Task<object> | 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, 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. |
GetRootConcepts(string)
Declaration
public static Task<object> GetRootConcepts(string subjectId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | subjectId |
Returns
| Type | Description |
|---|---|
| Task<object> |
GetSchedule(string, string)
Fetch calendar data request.
Declaration
public static Task<object> GetSchedule(string dateStart, string dateEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| string | dateStart | Start date. |
| string | dateEnd | End date. |
Returns
| Type | Description |
|---|---|
| Task<object> | Calendar data. |
GetSchedule(string)
Fetch calendar data request.
Declaration
public static Task<object> GetSchedule(string date)
Parameters
| Type | Name | Description |
|---|---|---|
| string | date | 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. |
GetStudentsStatistics(int, int)
Fetch students statistics request.
Declaration
public static Task<object> GetStudentsStatistics(int subjectId, int groupId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subjectId | Subject ID. |
| int | groupId | Group ID. |
Returns
| Type | Description |
|---|---|
| Task<object> | Statistics data. |
GetStudentStatisticsSummary()
Fetch student summary statistics request.
Declaration
public static Task<object> GetStudentStatisticsSummary()
Returns
| Type | Description |
|---|---|
| Task<object> | Statistics data. |
GetSubjectModules(int)
Fetch subject modules request.
Declaration
public static Task<object> GetSubjectModules(int subjectId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | subjectId | Subject ID. |
Returns
| Type | Description |
|---|---|
| Task<object> | Subject modules data. |
GetTeacherStatisticsSummary()
Fetch teacher summary statistics request.
Declaration
public static Task<object> GetTeacherStatisticsSummary()
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 test 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, 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. |
GetUserAnswers(int)
Declaration
public static Task<object> GetUserAnswers(int testId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | testId |
Returns
| Type | Description |
|---|---|
| Task<object> |
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. |