mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Version 3.0.337
This commit is contained in:
parent
fd0e63cf10
commit
573fe77e12
2336 changed files with 33688 additions and 86082 deletions
|
@ -60,8 +60,8 @@ namespace TINK.Model.User.Account
|
|||
/// <param name="bikeGroup">Group holdig info about Group (TINK, Konrad, ...)</param>
|
||||
/// <param name="p_iDebugLevel">Flag which controls display of debug settings.</param>
|
||||
public Account(
|
||||
string mail,
|
||||
string password,
|
||||
string mail,
|
||||
string password,
|
||||
bool isAgbAcknowledged,
|
||||
string sessionCookie,
|
||||
IEnumerable<string> bikeGroup,
|
||||
|
@ -73,7 +73,7 @@ namespace TINK.Model.User.Account
|
|||
SessionCookie = sessionCookie;
|
||||
DebugLevel = debugLevel;
|
||||
Group = bikeGroup != null
|
||||
? new HashSet<string>(bikeGroup).ToList()
|
||||
? new HashSet<string>(bikeGroup).ToList()
|
||||
: throw new ArgumentException("Can not instantiate account object. Reference to group list must not be empty.");
|
||||
}
|
||||
|
||||
|
|
|
@ -22,11 +22,11 @@ namespace TINK.Model.User.Account
|
|||
/// <param name="filter">Groups to filter.</param>
|
||||
/// <returns>Filtered bike groups.</returns>
|
||||
public static IEnumerable<string> DoFilter(
|
||||
this IAccount account,
|
||||
this IAccount account,
|
||||
IEnumerable<string> filter)
|
||||
{
|
||||
|
||||
return GetIsLoggedIn(account)
|
||||
return GetIsLoggedIn(account)
|
||||
? GroupFilterFactory.Create(account.Group).DoFilter(filter) // Filter if user is logged in.
|
||||
: new NullGroupFilter().DoFilter(filter); // Do not filter if no user is logged in.
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace TINK.Model.User.Account
|
|||
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); }
|
||||
set { m_oAccount = new Account(value, m_oAccount.Pwd, m_oAccount.IsAgbAcknowledged, m_oAccount.SessionCookie, m_oAccount.Group, m_oAccount.DebugLevel); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Serilog;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Serilog;
|
||||
using Xamarin.Essentials;
|
||||
|
||||
namespace TINK.Model.User.Account
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace TINK.Model.User.Account
|
|||
case Elements.Account:
|
||||
case Elements.None:
|
||||
continue;
|
||||
|
||||
|
||||
}
|
||||
|
||||
m_oDescription.Add(l_oElement, string.Empty);
|
||||
|
@ -94,7 +94,7 @@ namespace TINK.Model.User.Account
|
|||
}
|
||||
|
||||
l_oUserFriendlyDescription.Add(
|
||||
l_oElement,
|
||||
l_oElement,
|
||||
m_oDescription.ContainsKey(l_oElement) ? m_oDescription[l_oElement] : string.Empty);
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ namespace TINK.Model.User.Account
|
|||
Elements.Account,
|
||||
string.Join(";", l_oUserFriendlyDescription.Where(x => x.Value.Length > 0).Select(x => x.Value).ToArray()));
|
||||
|
||||
return l_oUserFriendlyDescription ;
|
||||
return l_oUserFriendlyDescription;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ namespace TINK.Model.User.Account
|
|||
{
|
||||
var l_oElements = Elements.None;
|
||||
var l_oDescription = new Dictionary<Elements, string>();
|
||||
|
||||
|
||||
// Validate mail address.
|
||||
if (string.IsNullOrEmpty(p_strMail))
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace TINK.Model.User
|
|||
IAccount account,
|
||||
string deviceId)
|
||||
{
|
||||
Store = accountStore
|
||||
Store = accountStore
|
||||
?? throw new ArgumentException("Can not instantiate user- object. No store functionality available.");
|
||||
DeviceId = deviceId;
|
||||
Account = new AccountMutable(account);
|
||||
|
@ -44,7 +44,7 @@ namespace TINK.Model.User
|
|||
/// <summary>
|
||||
/// Holds a value indicating whether user is logged in or not.
|
||||
/// </summary>
|
||||
public bool IsLoggedIn => Account.GetIsLoggedIn();
|
||||
public bool IsLoggedIn => Account.GetIsLoggedIn();
|
||||
|
||||
/// <summary>
|
||||
/// Holds the mail address.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue