yavsc/Yavsc/ViewModels/Account/Me.cs

39 lines
1.0 KiB
C#

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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; }
}
public class UserInfo {
public string UserId { get; set; }
public string UserName { get; set; }
public string Avatar { get; set; }
}
}