Refactor stuff, clean up managers

This commit is contained in:
John Gross
2017-06-24 17:25:22 -07:00
parent 4962c753cd
commit 4b4a069adb
51 changed files with 607 additions and 450 deletions

View File

@@ -9,26 +9,13 @@ namespace Torch.Server.ViewModels
{
public class SteamUserViewModel : ViewModel
{
private string _name;
public string Name { get => _name; set { } }
private ulong _id;
public ulong SteamId
{
get => _id;
set
{
_id = value;
OnPropertyChanged();
//TODO: resolve user name
OnPropertyChanged(nameof(Name));
}
}
public string Name { get; }
public ulong SteamId { get; }
public SteamUserViewModel(ulong id)
{
SteamId = id;
Name = SteamAPI.Instance.Friends.GetPersonaName(id);
}
public SteamUserViewModel() : this(0) { }