Ejemplo n.º 1
0
        private void SelectCheckSpecificationAction_Execute(object sender, SingleChoiceActionExecuteEventArgs e)
        {
            ClearCheckSpecifications();
            HideAllCheckSpecifications();

            var selectedData = e.SelectedChoiceActionItem.Data;

            SelectedSpecification = (CheckBySpecification)selectedData;

            var selectedCheckSpecification = selectedData.ToString().RemoveUnderline();

            ChangeVisibilityOfSelectedCheckSpecification($"{selectedCheckSpecification}", true);
        }
Ejemplo n.º 2
0
        public async Task <object> CheckSubject(object selectedSpecificationData, CheckBySpecification checkBySpecification, DateTime date)
        {
            apiUrlAssigner = CheckApiUrlAssigner.GetInstance();

            var url         = apiUrlAssigner.GetActionUrl(selectedSpecificationData, (int)checkBySpecification);
            var queryParams = new Dictionary <string, string> {
                { "date", date.ToString("yyyy-MM-dd") }
            };
            var stringResponse = await customHttpClient.GetStringAsync(url, queryParams);

            object deserializedResponse = JsonConvert.DeserializeObject <EntityCheckResponse>(stringResponse);

            deserializedResponse = ReturnExceptionIfResultIsNull(stringResponse, deserializedResponse);

            return(deserializedResponse);
        }