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

            return
                ((
                     UnlimitedRecordCount == other.UnlimitedRecordCount ||
                     UnlimitedRecordCount != null &&
                     UnlimitedRecordCount.Equals(other.UnlimitedRecordCount)
                     ) &&
                 (
                     CharacterInfos == other.CharacterInfos ||
                     CharacterInfos != null &&
                     other.CharacterInfos != null &&
                     CharacterInfos.SequenceEqual(other.CharacterInfos)
                 ) &&
                 (
                     LastPage == other.LastPage ||
                     LastPage != null &&
                     LastPage.Equals(other.LastPage)
                 ));
        }