예제 #1
0
        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));
            }
        }
예제 #2
0
 public bool Equals(UserDescriptor user)
 {
     return(this.m_Name == user.m_Name);
 }
예제 #3
0
 public bool AuthValidation(UserDescriptor user)
 {
     return(user.m_Name == this.m_Name && user.m_Password == this.m_Password);
 }
예제 #4
0
 public static MessageDescriptor NewMessageNoTime(UserDescriptor user, string text)
 {
     return(new MessageDescriptor(user.Name, text));
 }
예제 #5
0
 public static MessageDescriptor NewMessage(DateTime dateTime, UserDescriptor user, string text)
 {
     return(new MessageDescriptor(dateTime, user.Name, text));
 }
예제 #6
0
 public static MessageDescriptor NewMessageNow(UserDescriptor user, string text)
 {
     return(new MessageDescriptor(DateTime.Now, user.Name, text));
 }