// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "ICurrencyHttpClient.h" namespace CalculatorApp { namespace DataLoaders { class CurrencyHttpClient : public ICurrencyHttpClient { public: CurrencyHttpClient(); void SetSourceCurrencyCode(Platform::String^ sourceCurrencyCode) override; void SetResponseLanguage(Platform::String^ responseLanguage) override; Windows::Foundation::IAsyncOperationWithProgress^ GetCurrencyMetadata() override; Windows::Foundation::IAsyncOperationWithProgress^ GetCurrencyRatios() override; private: Windows::Web::Http::HttpClient^ m_client; Platform::String^ m_responseLanguage; Platform::String^ m_sourceCurrencyCode; }; } }