sharee.bike-App/TINKLib/ViewModel/CopriWebView/RegisterPageViewModel.cs

27 lines
757 B
C#
Raw Normal View History

2021-05-13 20:03:07 +02:00
using TINK.Services.CopriApi.ServerUris;
namespace TINK.ViewModel.CopriWebView
{
public class RegisterPageViewModel
{
2022-01-04 18:59:16 +01:00
/// <summary> Holds the merchant id.</summary>
private string MerchantId { get; }
2021-05-13 20:03:07 +02:00
/// <summary> Holds the name of the host.</summary>
private string HostName { get; }
public RegisterPageViewModel(
2022-01-04 18:59:16 +01:00
string merchantId,
2021-05-13 20:03:07 +02:00
string hostName)
{
HostName = hostName;
2022-01-04 18:59:16 +01:00
MerchantId = merchantId;
}
/// <summary>Get Uri of web view for creating account.</summary>
2021-05-13 20:03:07 +02:00
public string Uri =>
2022-01-04 18:59:16 +01:00
$"https://{HostName}/{HostName.GetAppFolderName()}/Account/1.%20Kundendaten?sessionid={MerchantId}";
2021-05-13 20:03:07 +02:00
}
}