Files
yavsc/Yavsc/ViewModels/Account/Me.cs
2017-02-01 19:53:10 +01:00

33 lines
909 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
using System.Linq;
namespace Yavsc.Models.Auth
{
public class Me {
public Me(string useruserid,
string username,
IEnumerable<string> emails,
IEnumerable<string> roles,
string avatar,
string address)
{
Id = useruserid;
UserName = username;
EMails = emails.ToArray();
Roles = roles.ToArray();
Avatar = avatar;
Address = address;
}
public string Id { get; set; }
public string UserName { get; set; }
public string[] EMails { get; set; }
public string[] Roles { get; set; }
/// <summary>
/// Known as profile, could point to an avatar
/// </summary>
/// <returns></returns>
public string Avatar { get; set; }
public string Address { get; set; }
}
}