namespace TINK.ViewModel.Login
{
/// Manages the copri web view when user is logged in.
public class ManageAccountViewModel
{
/// Holds the auth cookie of the user logged in.
private string AuthCookie { get; }
/// Holds the merchant id.
private string MerchantId { get; }
/// Holds the name of the host.
private string HostName { get; }
public ManageAccountViewModel(
string authCookie,
string merchantId,
string hostName)
{
AuthCookie = authCookie;
MerchantId = merchantId;
HostName = hostName;
}
/// Get Uri of web view managing user account.
public string Uri =>
$"https://{HostName}?sessionid={AuthCookie}{MerchantId}";
}
}