Пример #1
0
        private async void LoadFaqData()
        {
            try
            {
                XFActivityIndicator.IsVisible = true;
                _objFAQResponse = await _apiService.GetAsyncData_GetApi(new Get_API_Url().CommonBaseApi(_baseUrl), false, new HeaderModel(), _objFAQResponse);

                var result = _objFAQResponse.response;
                if (result.statusCode == 200)
                {
                    XFActivityIndicator.IsVisible = false;
                    // await DisplayAlert("Alert", "Sucess", "Ok");
                    foreach (var items in result.details)
                    {
                        items.IconText = "+";
                    }
                    this.BindingContext = result;

                    GetCompleteFaq.GetCompleteFAQ = result.details;
                }
                else
                {
                    XFActivityIndicator.IsVisible = false;
                    await DisplayAlert("", "No Supplier is Available", "(X)");
                }
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
                XFActivityIndicator.IsVisible = false;
            }
        }
Пример #2
0
 public FaqPage()
 {
     InitializeComponent();
     _objFAQResponse = new FAQResponse();
     _apiService     = new RestApi();
     _baseUrl        = Domain.Url + Domain.ListofFaqApiConstant;
     BindingContext  = _objFAQResponse;
     LoadFaqData();
 }