Move URI info into header file

This commit is contained in:
Pepe Rivera 2019-04-30 10:40:46 -07:00
commit 3fe35f9d23
4 changed files with 20 additions and 4 deletions

View file

@ -344,6 +344,7 @@
<ClInclude Include="Common\TraceLogger.h" /> <ClInclude Include="Common\TraceLogger.h" />
<ClInclude Include="Common\Utils.h" /> <ClInclude Include="Common\Utils.h" />
<ClInclude Include="Common\ValidatingConverters.h" /> <ClInclude Include="Common\ValidatingConverters.h" />
<ClInclude Include="DataLoaders\DataLoaderConstants.h" />
<ClInclude Include="DataLoaders\CurrencyDataLoader.h" /> <ClInclude Include="DataLoaders\CurrencyDataLoader.h" />
<ClInclude Include="DataLoaders\CurrencyHttpClient.h" /> <ClInclude Include="DataLoaders\CurrencyHttpClient.h" />
<ClInclude Include="DataLoaders\ICurrencyHttpClient.h" /> <ClInclude Include="DataLoaders\ICurrencyHttpClient.h" />

View file

@ -213,6 +213,9 @@
<ClInclude Include="Common\TraceActivity.h"> <ClInclude Include="Common\TraceActivity.h">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="DataLoaders\DataLoaderConstants.h">
<Filter>DataLoaders</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="DataLoaders\DefaultFromToCurrency.json"> <None Include="DataLoaders\DefaultFromToCurrency.json">

View file

@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved. // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. // Licensed under the MIT License.
#include "pch.h" #include "pch.h"
#include "CurrencyHttpClient.h" #include "CurrencyHttpClient.h"
#include "DataLoaderConstants.h"
using namespace CalculatorApp::DataLoaders; using namespace CalculatorApp::DataLoaders;
using namespace Platform; using namespace Platform;
@ -10,9 +11,6 @@ using namespace std;
using namespace Windows::Foundation; using namespace Windows::Foundation;
using namespace Windows::Web::Http; using namespace Windows::Web::Http;
static constexpr auto sc_MetadataUriLocalizeFor = L"https://go.microsoft.com/fwlink/?linkid=2041093&localizeFor=";
static constexpr auto sc_RatiosUriRelativeTo = L"https://go.microsoft.com/fwlink/?linkid=2041339&localCurrency=";
CurrencyHttpClient::CurrencyHttpClient() : CurrencyHttpClient::CurrencyHttpClient() :
m_client(ref new HttpClient()), m_client(ref new HttpClient()),
m_responseLanguage(L"en-US") m_responseLanguage(L"en-US")

View file

@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace CalculatorApp
{
namespace DataLoaders
{
static constexpr auto sc_MetadataUriLocalizeFor = L"";
static constexpr auto sc_RatiosUriRelativeTo = L"";
static constexpr auto sc_ApiKey = L"";
}
}