Beispiel #1
0
        public async void GetServerStatus()
        {
            try
            {
                var status = await MyBjutService.GetBookingGradeServerStatus(_httpService);

                ServerStatus = status;
            }
            catch (System.Net.Http.HttpRequestException)
            {
                Services.NotityService.Notify("网络异常");
            }
            finally
            {
            }
        }
Beispiel #2
0
        public async void GetIsBookingGrade()
        {
            if (BJUTEduCenterUserinfo == null || string.IsNullOrWhiteSpace(BJUTEduCenterUserinfo.Username) || string.IsNullOrWhiteSpace(BJUTEduCenterUserinfo.Username))

            {
                Services.NotityService.Notify("教务管理账号信息不全");
                return;
            }
            IsLoading = true;
            try
            {
                var status = await MyBjutService.GetIsBookingGrade(_httpService, BJUTEduCenterUserinfo.Username);

                HasBookingGrade = status;
            }
            catch (System.Net.Http.HttpRequestException)
            {
                Services.NotityService.Notify("网络异常");
            }
            finally
            {
                IsLoading = false;
            }
        }