public override bool Equals(object obj) { if (obj == null) { return(false); } UserDescriptor objAsUserDesc = obj as UserDescriptor; if (objAsUserDesc == null) { return(false); } else { return(Equals(objAsUserDesc)); } }
public bool Equals(UserDescriptor user) { return(this.m_Name == user.m_Name); }
public bool AuthValidation(UserDescriptor user) { return(user.m_Name == this.m_Name && user.m_Password == this.m_Password); }
public static MessageDescriptor NewMessageNoTime(UserDescriptor user, string text) { return(new MessageDescriptor(user.Name, text)); }
public static MessageDescriptor NewMessage(DateTime dateTime, UserDescriptor user, string text) { return(new MessageDescriptor(dateTime, user.Name, text)); }
public static MessageDescriptor NewMessageNow(UserDescriptor user, string text) { return(new MessageDescriptor(DateTime.Now, user.Name, text)); }