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 {
|
|
|
|
|
|
public Me(ApplicationUser user)
|
2016-06-13 13:33:32 +02:00
|
|
|
|
{
|
2018-01-15 14:09:19 +01:00
|
|
|
|
Id = user.Id;
|
|
|
|
|
|
UserName = user.UserName;
|
|
|
|
|
|
EMail = user.Email;
|
|
|
|
|
|
Avatar = user.Avatar;
|
|
|
|
|
|
PostalAddress = user.PostalAddress;
|
|
|
|
|
|
DedicatedGoogleCalendar = user.DedicatedGoogleCalendar;
|
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; }
|
2018-01-15 14:09:19 +01:00
|
|
|
|
public string EMail { 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
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string DedicatedGoogleCalendar
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ILocation PostalAddress
|
|
|
|
|
|
{
|
|
|
|
|
|
get; set;
|
|
|
|
|
|
}
|
2016-06-13 13:33:32 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|