diff options
Diffstat (limited to 'Ryujinx.Ava/UI/Models/TempProfile.cs')
-rw-r--r-- | Ryujinx.Ava/UI/Models/TempProfile.cs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Ryujinx.Ava/UI/Models/TempProfile.cs b/Ryujinx.Ava/UI/Models/TempProfile.cs new file mode 100644 index 00000000..2dd7a6c8 --- /dev/null +++ b/Ryujinx.Ava/UI/Models/TempProfile.cs @@ -0,0 +1,58 @@ +using Ryujinx.Ava.UI.ViewModels; +using Ryujinx.HLE.HOS.Services.Account.Acc; +using System; + +namespace Ryujinx.Ava.UI.Models +{ + public class TempProfile : BaseModel + { + private readonly UserProfile _profile; + private byte[] _image = null; + private string _name = String.Empty; + private UserId _userId; + + public byte[] Image + { + get => _image; + set + { + _image = value; + OnPropertyChanged(); + } + } + + public UserId UserId + { + get => _userId; + set + { + _userId = value; + OnPropertyChanged(); + } + } + + public string Name + { + get => _name; + set + { + _name = value; + OnPropertyChanged(); + } + } + + public TempProfile(UserProfile profile) + { + _profile = profile; + + if (_profile != null) + { + Image = profile.Image; + Name = profile.Name; + UserId = profile.UserId; + } + } + + public TempProfile(){} + } +}
\ No newline at end of file |