mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 15:46:29 +01:00
27 lines
859 B
C#
27 lines
859 B
C#
|
using TINK.Services.CopriApi.ServerUris;
|
|||
|
|
|||
|
namespace TINK.ViewModel.CopriWebView
|
|||
|
{
|
|||
|
/// <summary> Manages the copri web view for password forgotton use case. </summary>
|
|||
|
public class PasswordForgottonViewModel
|
|||
|
{
|
|||
|
/// <summary> Holds the merchant id.</summary>
|
|||
|
private string MerchantId { get; }
|
|||
|
|
|||
|
/// <summary> Holds the name of the host.</summary>
|
|||
|
private string HostName { get; }
|
|||
|
|
|||
|
public PasswordForgottonViewModel(
|
|||
|
string merchantId,
|
|||
|
string hostName)
|
|||
|
{
|
|||
|
MerchantId = merchantId;
|
|||
|
HostName = hostName;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary> Get Uri of web view providing password forgotton functionality. </summary>
|
|||
|
public string Uri =>
|
|||
|
$"https://{HostName}/{HostName.GetAppFolderName()}/Account?sessionid={MerchantId}";
|
|||
|
}
|
|||
|
}
|