mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
31 lines
927 B
C#
31 lines
927 B
C#
|
|
|||
|
namespace TINK.ViewModel.Login
|
|||
|
{
|
|||
|
/// <summary> Manages the copri web view when user is logged in. </summary>
|
|||
|
public class ManageAccountViewModel
|
|||
|
{
|
|||
|
/// <summary> Holds the auth cookie of the user logged in.</summary>
|
|||
|
private string AuthCookie { get; }
|
|||
|
|
|||
|
/// <summary> Holds the merchant id.</summary>
|
|||
|
private string MerchantId { get; }
|
|||
|
|
|||
|
/// <summary> Holds the name of the host.</summary>
|
|||
|
private string HostName { get; }
|
|||
|
|
|||
|
public ManageAccountViewModel(
|
|||
|
string authCookie,
|
|||
|
string merchantId,
|
|||
|
string hostName)
|
|||
|
{
|
|||
|
AuthCookie = authCookie;
|
|||
|
MerchantId = merchantId;
|
|||
|
HostName = hostName;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary> Get Uri of web view managing user account. </summary>
|
|||
|
public string Uri =>
|
|||
|
$"https://{HostName}?sessionid={AuthCookie}{MerchantId}";
|
|||
|
}
|
|||
|
}
|