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

41 lines
1 KiB
C#
Raw Normal View History

2018-07-16 02:36:44 +02:00
using Yavsc.Abstract.Identity;
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(string userId, string userName, string email, string avatar, ILocation address, string gCalId)
2016-06-13 13:33:32 +02:00
{
Id = userId;
UserName = userName;
EMail = email;
Avatar = avatar;
PostalAddress = address;
DedicatedGoogleCalendar = gCalId;
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
}
}