コード例 #1
0
        public static async Task <object> GetPracticials(int subjectId, int groupId)
        {
            var groupItems = new GroupAndSubjModel();

            groupItems.GroupId   = groupId;
            groupItems.SubjectId = subjectId;
            var body = JsonConvert.SerializeObject(groupItems);

            return(await AppServicesController.Request(
                       $"{Servers.EduCatsByAddress + Links.GetParticialsMarks}", body));
        }
コード例 #2
0
 /// <summary>
 /// Fetch groups request.
 /// </summary>
 /// <param name="subjectId">Subject ID.</param>
 /// <returns>Group data.</returns>
 public static async Task <object> GetOnlyGroups(int subjectId)
 {
     return(await AppServicesController.Request($"{Links.GetOnlyGroups}/{subjectId}"));
 }
コード例 #3
0
 /// <summary>
 /// Fetch statistics request.
 /// </summary>
 /// <param name="subjectId">Subject ID.</param>
 /// <param name="groupId">Group ID.</param>
 /// <returns>Statistics data.</returns>
 public static async Task <object> GetTestStatistics(int subjectId, int groupId)
 {
     return(await AppServicesController.Request(
                $"{Servers.EduCatsByAddress + Links.GetLabsCalendarData}subjectId={subjectId}&groupId={groupId}"));
 }