daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace Model
  2. {
  3.     /// <summary>
  4.     /// szerepkor felsorolas
  5.     /// </summary>
  6.     public enum Role
  7.     {
  8.         Hallgato, Ugyintezo, Rendszergazda
  9.     }
  10.  
  11.     /// <summary>
  12.     /// user class
  13.     /// </summary>
  14.     public class User
  15.     {
  16.         private int id;
  17.         private string password;
  18.         private Role privilege;
  19.         private string userName;
  20.         private string nev;
  21.  
  22.         /// <summary>
  23.         /// cons of user
  24.         /// </summary>
  25.         /// <param name="id">ID atadasa</param>
  26.         /// <param name="pass">pass atadasa</param>
  27.         /// <param name="priv">role atadasa</param>
  28.         /// <param name="username">usernev atadasa</param>
  29.         /// <param name="nev">nev atadasa</param>
  30.         public User(int id, string pass, Role priv, string username, string nev)
  31.         {
  32.             this.id = id;
  33.             this.password = pass;
  34.             this.privilege = priv;
  35.             this.userName = username;
  36.             this.nev = nev;
  37.         }
  38.  
  39.         /// <summary>
  40.         /// Gets ID
  41.         /// </summary>
  42.         public int Id
  43.         {
  44.             get
  45.             {
  46.                 return id;
  47.             }
  48.         }
  49.  
  50.         /// <summary>
  51.         /// Gets pass
  52.         /// </summary>
  53.         public string Password
  54.         {
  55.             get
  56.             {
  57.                 return password;
  58.             }
  59.         }
  60.  
  61.         /// <summary>
  62.         /// Gets role
  63.         /// </summary>
  64.         public Role Privilege
  65.         {
  66.             get
  67.             {
  68.                 return privilege;
  69.             }
  70.         }
  71.  
  72.         /// <summary>
  73.         /// Gets username
  74.         /// </summary>
  75.         public string Username
  76.         {
  77.             get { return userName; }
  78.         }
  79.  
  80.         /// <summary>
  81.         /// Gets nev
  82.         /// </summary>
  83.         public string Nev
  84.         {
  85.             get { return nev; }
  86.         }
  87.     }
  88. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top