Esempio n. 1
0
        /// <summary>
        /// Determines whether the specified <see cref="object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="object"/> to compare with this instance.</param>
        /// <returns><c>true</c> if the specified object is equal to this instance; otherwise, <c>false</c>.</returns>
        public override bool Equals(object obj)
        {
            RequestGetChildren other = obj as RequestGetChildren;

            if (other == null)
            {
                return(false);
            }

            if (!this.DataEquals(other))
            {
                return(false);
            }

            if (!string.Equals(this.RetrievalCondition, other.RetrievalCondition))
            {
                return(false);
            }

            if (this.Watcher == other.Watcher)
            {
                return(true);
            }

            return(EqualityHelper.Equals(this.Watcher, other.Watcher));
        }
Esempio n. 2
0
        /// <summary>
        /// Datas the equals.
        /// </summary>
        /// <param name="obj">The object.</param>
        /// <returns><c>true</c> if objects are equal (including data), <c>false</c> otherwise.</returns>
        public override bool DataEquals(IRingMasterBackendRequest obj)
        {
            RequestGetChildren other = obj as RequestGetChildren;

            if (other == null)
            {
                return(false);
            }

            if (!base.DataEquals(other))
            {
                return(false);
            }

            return(true);
        }