yavsc/Yavsc.Server/ViewModels/Account/Me.cs

39 lines
993 B
C#
Raw Normal View History

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
}
public string Id { get; set; }
public string UserName { get; set; }
2018-01-15 14:09:19 +01:00
public string EMail { get; set; }
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>
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
}
}