Example #1
0
        /// <summary>
        /// Returns true if TotatsuJohoResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of TotatsuJohoResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(TotatsuJohoResponse other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TotatsuNichiji == other.TotatsuNichiji ||
                     TotatsuNichiji != null &&
                     TotatsuNichiji.Equals(other.TotatsuNichiji)
                     ) &&
                 (
                     TotatsuTsuchi == other.TotatsuTsuchi ||
                     TotatsuTsuchi != null &&
                     TotatsuTsuchi.Equals(other.TotatsuTsuchi)
                 ) &&
                 (
                     UketsukeKekka == other.UketsukeKekka ||
                     UketsukeKekka != null &&
                     UketsukeKekka.Equals(other.UketsukeKekka)
                 ));
        }