Esempio n. 1
0
 public User AddUser(string name)
 {
     var user = new User { Name = name, Seniority = CurrentSeniority++ };
     users.Add(user);
     return user;
 }
Esempio n. 2
0
 private void LogInUser(User user)
 {
     // TODO: set session information, etc.
 }
Esempio n. 3
0
 public Post(NSDictionary attributes)
 {
     Text = ((NSString)attributes["text"]).ToString();
     User = new User((NSDictionary)attributes["user"]);
 }
Esempio n. 4
0
 private void UpdateUser(User user)
 {
     // TODO: update the user in the database with the new password hash
 }