mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-05-01 07:30:43 +02:00
55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using FabAccessAPI.Schema;
|
|
using Prism.Mvvm;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Borepin.Model
|
|
{
|
|
public class UserVisualize : BindableBase
|
|
{
|
|
#region Private Fields
|
|
public readonly User _User;
|
|
#endregion
|
|
|
|
#region Contructors
|
|
public UserVisualize(User user)
|
|
{
|
|
_User = user;
|
|
}
|
|
#endregion
|
|
|
|
#region LoadData
|
|
public Task LoadData()
|
|
{
|
|
//ID = _User.Id;
|
|
Username = _User.Username;
|
|
//Space = new SpaceVisualize(_User.Space);
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
#endregion
|
|
|
|
#region Fields
|
|
private UUID _ID;
|
|
public UUID ID
|
|
{
|
|
get => _ID;
|
|
set => SetProperty(ref _ID, value);
|
|
}
|
|
|
|
private string _Username;
|
|
public string Username
|
|
{
|
|
get => _Username;
|
|
set => SetProperty(ref _Username, value);
|
|
}
|
|
|
|
private SpaceVisualize _Space;
|
|
public SpaceVisualize Space
|
|
{
|
|
get => _Space;
|
|
set => SetProperty(ref _Space, value);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|