Example #1
0
File: User.cs Project: uwat79/OCTGN
 public User(User user)
 {
     this.JidUser      = Jid.UnescapeNode(user.JidUser.Bare.Clone() as string);
     this.Status       = user.Status;
     this.CustomStatus = user.CustomStatus.Clone() as string;
     this.Email        = user.Email.Clone() as string;
 }
Example #2
0
File: User.cs Project: uwat79/OCTGN
 /// <summary>
 /// Initializes a new instance of the <see cref="User"/> class.
 /// </summary>
 /// <param name="user">
 /// The user JID.
 /// </param>
 public User(Jid user)
 {
     this.JidUser      = Jid.UnescapeNode(user.Bare.Clone() as string);
     this.Status       = UserStatus.Unknown;
     this.CustomStatus = string.Empty;
     this.Email        = string.Empty;
     if (string.IsNullOrWhiteSpace(this.UserName))
     {
         return;
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User"/> class.
 /// </summary>
 /// <param name="user">
 /// The user JID.
 /// </param>
 public User(Jid user)
 {
     this.JidUser      = Jid.UnescapeNode(user.Bare);
     this.Status       = UserStatus.Unknown;
     this.CustomStatus = string.Empty;
     this.Email        = string.Empty;
     if (string.IsNullOrWhiteSpace(this.UserName))
     {
         return;
     }
     UserManager.Get().OnUpdate += OnOnUpdate;
 }