sharee.bike-App/TINKLib/ViewModel/CopriWebView/RegisterPageViewModel.cs
2022-01-04 18:59:16 +01:00

27 lines
757 B
C#

using TINK.Services.CopriApi.ServerUris;
namespace TINK.ViewModel.CopriWebView
{
public class RegisterPageViewModel
{
/// <summary> Holds the merchant id.</summary>
private string MerchantId { get; }
/// <summary> Holds the name of the host.</summary>
private string HostName { get; }
public RegisterPageViewModel(
string merchantId,
string hostName)
{
HostName = hostName;
MerchantId = merchantId;
}
/// <summary>Get Uri of web view for creating account.</summary>
public string Uri =>
$"https://{HostName}/{HostName.GetAppFolderName()}/Account/1.%20Kundendaten?sessionid={MerchantId}";
}
}