yavsc/Yavsc/ViewModels/Account/Me.cs

31 lines
819 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Linq;
2016-06-13 13:33:32 +02:00
namespace Yavsc.Models.Auth
{
public class Me {
public Me(string useruserid,
string username,
IEnumerable<string> emails,
IEnumerable<string> roles,
string avatar)
2016-06-13 13:33:32 +02:00
{
Id = useruserid;
UserName = username;
EMails = emails.ToArray();
Roles = roles.ToArray();
Avatar = avatar;
2016-06-13 13:33:32 +02:00
}
public string Id { get; set; }
public string UserName { get; set; }
public string[] EMails { 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; }
2016-06-13 13:33:32 +02:00
}
}