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