| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | 
							- using Newtonsoft.Json.Converters;
 
- using Newtonsoft.Json;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Linq;
 
- using System.Runtime.Serialization;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using PunkHPX8_Core;
 
- namespace PunkHPX8_MainPages.Roles
 
- {
 
-     [DataContract]
 
-     public class User : INotifyPropertyChanged
 
-     {
 
-         public User(string name, string password, Role role)
 
-         {
 
-             Name = name;
 
-             Password = password;
 
-             Role = role;
 
-         }
 
-         private string m_Name;
 
-         [DataMember]
 
-         public string Name
 
-         {
 
-             get { return m_Name; }
 
-             set
 
-             {
 
-                 m_Name = value;
 
-                 OnPropertyChanged("Name");
 
-             }
 
-         }
 
-         public string m_Password;
 
-         [DataMember]
 
-         public string Password
 
-         {
 
-             get { return m_Password; }
 
-             set
 
-             {
 
-                 m_Password = value;
 
-                 OnPropertyChanged("Password");
 
-             }
 
-         }
 
-         public Role m_Role;
 
-         [DataMember]
 
-         [JsonConverter(typeof(StringEnumConverter))]
 
-         public Role Role
 
-         {
 
-             get { return m_Role; }
 
-             set
 
-             {
 
-                 m_Role = value;
 
-                 OnPropertyChanged("Role");
 
-             }
 
-         }
 
-         #region INotifyPropertyChanged
 
-         public event PropertyChangedEventHandler PropertyChanged;
 
-         private void OnPropertyChanged(string propertyName)
 
-         {
 
-             PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
 
-         }
 
-         #endregion INotifyPropertyChanged
 
-     }
 
- }
 
 
  |