mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Initial version.
This commit is contained in:
parent
193aaa1a56
commit
b72c67a53e
228 changed files with 25924 additions and 0 deletions
30
TINKLib/ViewModel/CopriWebView/ManageAccountViewModel.cs
Normal file
30
TINKLib/ViewModel/CopriWebView/ManageAccountViewModel.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
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}";
|
||||
}
|
||||
}
|
26
TINKLib/ViewModel/CopriWebView/PasswordForgottonViewModel.cs
Normal file
26
TINKLib/ViewModel/CopriWebView/PasswordForgottonViewModel.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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}";
|
||||
}
|
||||
}
|
19
TINKLib/ViewModel/CopriWebView/RegisterPageViewModel.cs
Normal file
19
TINKLib/ViewModel/CopriWebView/RegisterPageViewModel.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using TINK.Services.CopriApi.ServerUris;
|
||||
|
||||
namespace TINK.ViewModel.CopriWebView
|
||||
{
|
||||
public class RegisterPageViewModel
|
||||
{
|
||||
/// <summary> Holds the name of the host.</summary>
|
||||
private string HostName { get; }
|
||||
|
||||
public RegisterPageViewModel(
|
||||
string hostName)
|
||||
{
|
||||
HostName = hostName;
|
||||
} /// <summary>Get Uri of web view for creating account.</summary>
|
||||
public string Uri =>
|
||||
$"https://{HostName}/{HostName.GetAppFolderName()}/Account/1.%20Kundendaten";
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue