2018-07-16 02:36:44 +02:00
|
|
|
|
using Yavsc.Abstract.Identity;
|
|
|
|
|
|
|
2018-01-16 13:35:54 +01:00
|
|
|
|
namespace Yavsc.Models.Auth
|
2016-06-13 13:33:32 +02:00
|
|
|
|
{
|
2018-01-15 14:09:19 +01:00
|
|
|
|
public class Me : IApplicationUser {
|
2026-10-07 12:20:26 +01:00
|
|
|
|
public Me(string userId, string userName, string email, string avatar, ILocation address, string gCalId, string? fullName = null)
|
2016-06-13 13:33:32 +02:00
|
|
|
|
{
|
2018-07-15 06:47:41 +02:00
|
|
|
|
Id = userId;
|
|
|
|
|
|
UserName = userName;
|
|
|
|
|
|
EMail = email;
|
|
|
|
|
|
Avatar = avatar;
|
|
|
|
|
|
PostalAddress = address;
|
|
|
|
|
|
DedicatedGoogleCalendar = gCalId;
|
2026-10-07 12:20:26 +01:00
|
|
|
|
FullName = fullName ?? string.Empty;
|
|
|
|
|
|
Address = address?.Address ?? string.Empty;
|
2026-10-07 12:22:49 +01:00
|
|
|
|
BankInfoSummary = string.Empty;
|
2016-06-13 13:33:32 +02:00
|
|
|
|
}
|
2016-06-25 21:07:38 +02:00
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
public string UserName { get; set; }
|
2026-10-07 12:20:26 +01:00
|
|
|
|
public string FullName { get; set; }
|
2018-01-15 14:09:19 +01:00
|
|
|
|
public string EMail { get; set; }
|
2026-10-07 12:20:26 +01:00
|
|
|
|
public string Address { get; set; }
|
2026-10-07 12:22:49 +01:00
|
|
|
|
public string? BankInfoSummary { get; set; }
|
2016-06-25 21:07:38 +02:00
|
|
|
|
public string[] Roles { get; set; }
|
2016-06-13 13:33:32 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Known as profile, could point to an avatar
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2016-06-25 21:07:38 +02:00
|
|
|
|
public string Avatar { get; set; }
|
2018-01-15 14:09:19 +01:00
|
|
|
|
|
|
|
|
|
|
public IAccountBalance AccountBalance
|
|
|
|
|
|
{
|
2026-10-07 12:20:26 +01:00
|
|
|
|
get; set;
|
2018-01-15 14:09:19 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string DedicatedGoogleCalendar
|
|
|
|
|
|
{
|
2026-10-07 12:20:26 +01:00
|
|
|
|
get; set;
|
2018-01-15 14:09:19 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ILocation PostalAddress
|
|
|
|
|
|
{
|
2026-10-07 12:20:26 +01:00
|
|
|
|
get; set;
|
2018-01-15 14:09:19 +01:00
|
|
|
|
}
|
2016-06-13 13:33:32 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-07 12:20:26 +01:00
|
|
|
|
}
|