yavsc/Yavsc/ViewModels/Account/Me.cs

33 lines
909 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,
2016-09-23 12:32:39 +02:00
string avatar,
string address)
2016-06-13 13:33:32 +02:00
{
Id = useruserid;
UserName = username;
EMails = emails.ToArray();
Roles = roles.ToArray();
Avatar = avatar;
2016-09-23 12:32:39 +02:00
Address = address;
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-09-23 12:32:39 +02:00
public string Address { get; set; }
2016-06-13 13:33:32 +02:00
}
}