예제 #1
0
        private User CreateUserInstance(String email, String pass)
        {
            User u = new User();
            u.Email = email;
            u.Password = pass;

            return u;
        }
예제 #2
0
파일: User.cs 프로젝트: pikakapi93/besmart
 /**
  * Constructor with User
  * */
 public User(User u)
 {
     _username = u.Username;
     _email = u.Email;
     _password = u.Password;
 }
예제 #3
0
 /**
  * Deserialization Constructor
  * */
 public DataBaseUser(SerializationInfo info, StreamingContext ctxt)
 {
     _user = (User)info.GetValue("User", typeof(User));
     _software_list = (Dictionary<int, Software>)info.GetValue("Software_List", typeof(Dictionary<int, Software>));
     _charac = (Dictionary<int, Characteristic>)info.GetValue("Charac", typeof(Dictionary<int, Characteristic>));
 }
예제 #4
0
 /**
  * Constructor with Value
  * */
 public DataBaseUser(DataBaseUser db)
 {
     _user = db.User;
     _software_list = db.Software_list;
     _charac = db.Charac;
 }
예제 #5
0
 /**
  * Constructor with parameters
  * */
 public DataBaseUser(User user, Dictionary<int, Software> software_list, Dictionary<int, Characteristic> charac)
 {
     _user = user;
     _software_list = software_list;
     _charac = charac;
 }
예제 #6
0
 /**
  * Constructor default
  * */
 public DataBaseUser()
 {
     _user = new User();
     _software_list = new Dictionary<int, Software>();
     _charac = new Dictionary<int, Characteristic>();
 }