Example #1
0
        public override bool Equals(Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            RegisterResponse other = (RegisterResponse)obj;

            if (ClientData == null)
            {
                if (other.ClientData != null)
                {
                    return(false);
                }
            }
            else if (!ClientData.Equals(other.ClientData))
            {
                return(false);
            }
            if (RegistrationData == null)
            {
                if (other.RegistrationData != null)
                {
                    return(false);
                }
            }
            else if (!RegistrationData.Equals(other.RegistrationData))
            {
                return(false);
            }
            return(true);
        }