mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-05-21 00:16:35 +02:00
Version 3.0.338
This commit is contained in:
parent
573fe77e12
commit
0468955d49
751 changed files with 62747 additions and 60672 deletions
|
@ -2,72 +2,72 @@
|
|||
|
||||
namespace TINK.Model.User.Account
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds email address and password.
|
||||
/// </summary>
|
||||
public class AccountMutable : IAccount
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds the account data.
|
||||
/// </summary>
|
||||
private Account m_oAccount;
|
||||
/// <summary>
|
||||
/// Holds email address and password.
|
||||
/// </summary>
|
||||
public class AccountMutable : IAccount
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds the account data.
|
||||
/// </summary>
|
||||
private Account m_oAccount;
|
||||
|
||||
|
||||
public AccountMutable(IAccount p_oSource)
|
||||
{
|
||||
m_oAccount = new Account(p_oSource);
|
||||
}
|
||||
public AccountMutable(IAccount p_oSource)
|
||||
{
|
||||
m_oAccount = new Account(p_oSource);
|
||||
}
|
||||
|
||||
public void Copy(IAccount p_oSource)
|
||||
{
|
||||
m_oAccount = new Account(p_oSource);
|
||||
}
|
||||
public void Copy(IAccount p_oSource)
|
||||
{
|
||||
m_oAccount = new Account(p_oSource);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mail address.
|
||||
/// </summary>
|
||||
public string Mail
|
||||
{
|
||||
get { return m_oAccount.Mail; }
|
||||
set { m_oAccount = new Account(value, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Mail address.
|
||||
/// </summary>
|
||||
public string Mail
|
||||
{
|
||||
get { return m_oAccount.Mail; }
|
||||
set { m_oAccount = new Account(value, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Password of the account.
|
||||
/// </summary>
|
||||
public string Pwd
|
||||
{
|
||||
get { return m_oAccount.Pwd; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, value, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Password of the account.
|
||||
/// </summary>
|
||||
public string Pwd
|
||||
{
|
||||
get { return m_oAccount.Pwd; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, value, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
|
||||
/// <summary>True if user acknowleged agbs.</summary>
|
||||
public bool IsAgbAcknowledged => m_oAccount.IsAgbAcknowledged;
|
||||
/// <summary>True if user acknowleged agbs.</summary>
|
||||
public bool IsAgbAcknowledged => m_oAccount.IsAgbAcknowledged;
|
||||
|
||||
/// <summary>
|
||||
/// Session cookie used to sign in to copri.
|
||||
/// </summary>
|
||||
public string SessionCookie
|
||||
{
|
||||
get { return m_oAccount.SessionCookie; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, value, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Session cookie used to sign in to copri.
|
||||
/// </summary>
|
||||
public string SessionCookie
|
||||
{
|
||||
get { return m_oAccount.SessionCookie; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, value, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Holds the group of the bike (TINK, Konrad, ...).
|
||||
/// </summary>
|
||||
public IEnumerable<string> Group
|
||||
{
|
||||
get { return m_oAccount.Group; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Holds the group of the bike (TINK, Konrad, ...).
|
||||
/// </summary>
|
||||
public IEnumerable<string> Group
|
||||
{
|
||||
get { return m_oAccount.Group; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Debug level used to determine which features are available.
|
||||
/// </summary>
|
||||
public Permissions DebugLevel
|
||||
{
|
||||
get { return m_oAccount.DebugLevel; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, value); }
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Debug level used to determine which features are available.
|
||||
/// </summary>
|
||||
public Permissions DebugLevel
|
||||
{
|
||||
get { return m_oAccount.DebugLevel; }
|
||||
set { m_oAccount = new Account(m_oAccount.Mail, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue