Esempio n. 1
0
        private async void btnGo_Click(object sender, EventArgs e)
        {
            if (!ValidateInput()) return;

            var request = new GetCompanySearchRequest(txtKeyword.Text, cbIncludeIndexes.Checked);
            var response = await ApiGateway.MarketData.GetCompanySearch(request);
            txtResponse.Text = response.RawResponse.Content;
        }
Esempio n. 2
0
        public async Task<GetCompanySearchResponse> GetCompanySearch(GetCompanySearchRequest request)
        {
            var command = new GetCompanySearchCommand(request.Keyword, request.IncludeIndexes, Gateway.AccesToken);

            //Send command to API
            await MakeApiCall(command);

            //Some handling of the response
            var response = new GetCompanySearchResponse(command.RawResponse, command.MessageFormat);
            return response;
        }