mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Add mock end points
This commit is contained in:
parent
3fe35f9d23
commit
dfa4556a33
2 changed files with 14 additions and 2 deletions
|
@ -685,6 +685,18 @@ void CurrencyDataLoader::GuaranteeSelectedUnits()
|
|||
isConversionTargetSet = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If still not set for either source or target, just select the first currency in the list
|
||||
|
||||
if (!isConversionSourceSet && !m_currencyUnits.empty())
|
||||
{
|
||||
m_currencyUnits[0].isConversionSource = true;
|
||||
}
|
||||
|
||||
if (!isConversionTargetSet && !m_currencyUnits.empty())
|
||||
{
|
||||
m_currencyUnits[0].isConversionTarget = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CurrencyDataLoader::NotifyDataLoadFinished(bool didLoad)
|
||||
|
|
|
@ -7,8 +7,8 @@ namespace CalculatorApp
|
|||
{
|
||||
namespace DataLoaders
|
||||
{
|
||||
static constexpr auto sc_MetadataUriLocalizeFor = L"";
|
||||
static constexpr auto sc_RatiosUriRelativeTo = L"";
|
||||
static constexpr auto sc_MetadataUriLocalizeFor = L"https://go.microsoft.com/fwlink/?linkid=2091028&localizeFor=";
|
||||
static constexpr auto sc_RatiosUriRelativeTo = L"https://go.microsoft.com/fwlink/?linkid=2091307&localCurrency=";
|
||||
static constexpr auto sc_ApiKey = L"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue