public void OnClick(View view)
        {
            switch (view.Id)
            {
            case Resource.Id.btn_get_place_details:
                DetailSearchRequest detailSearchRequest = new DetailSearchRequest();

                detailSearchRequest.SiteId   = siteIdInput.Text;
                detailSearchRequest.Language = languageInput.Text;

                DetailSearchResultListener detailSearchResultListener = new DetailSearchResultListener();
                searchService.DetailSearch(detailSearchRequest, detailSearchResultListener);

                break;

            default:
                break;
            }
        }
Example #2
0
        private void ExecPlaceDetailSearch()
        {
            DetailSearchRequest DetailSearchRequest = new DetailSearchRequest();

            if (SiteIdInput.Text.Length == 0)
            {
                ResultTextView.Text = "Error : Site ID is empty!";
                return;
            }
            DetailSearchRequest.SiteId = SiteIdInput.Text;

            if (!string.IsNullOrEmpty(LanguageInput.Text))
            {
                DetailSearchRequest.Language = LanguageInput.Text;
            }

            DetailSearchRequest.Children = Childern.Checked;

            DetailSearchResultListener detailSearchResultListener = new DetailSearchResultListener();

            // Call the search API.
            SearchService.DetailSearch(DetailSearchRequest, detailSearchResultListener);
        }