예제 #1
0
        /// <summary>
        /// Returns true if ClanWarLeagueGroup instances are equal
        /// </summary>
        /// <param name="input">Instance of ClanWarLeagueGroup to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ClanWarLeagueGroup?input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Tag == input.Tag ||
                     (Tag != null &&
                      Tag.Equals(input.Tag))
                     ) &&
                 (
                     State == input.State ||
                     State.Equals(input.State)
                 ) &&
                 (
                     Season == input.Season ||
                     (Season != null &&
                      Season.Equals(input.Season))
                 ) &&
                 (
                     Clans == input.Clans ||
                     Clans != null &&
                     input.Clans != null &&
                     Clans.SequenceEqual(input.Clans)
                 ) &&
                 (
                     Rounds == input.Rounds ||
                     Rounds != null &&
                     input.Rounds != null &&
                     Rounds.SequenceEqual(input.Rounds)
                 ));
        }