public bool Equals(GroupOptionsEditAction input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     InvitePermissionOverride == input.InvitePermissionOverride ||
                     (InvitePermissionOverride != null && InvitePermissionOverride.Equals(input.InvitePermissionOverride))
                     ) &&
                 (
                     UpdateCulturePermissionOverride == input.UpdateCulturePermissionOverride ||
                     (UpdateCulturePermissionOverride != null && UpdateCulturePermissionOverride.Equals(input.UpdateCulturePermissionOverride))
                 ) &&
                 (
                     HostGuidedGamePermissionOverride == input.HostGuidedGamePermissionOverride ||
                     (HostGuidedGamePermissionOverride.Equals(input.HostGuidedGamePermissionOverride))
                 ) &&
                 (
                     UpdateBannerPermissionOverride == input.UpdateBannerPermissionOverride ||
                     (UpdateBannerPermissionOverride != null && UpdateBannerPermissionOverride.Equals(input.UpdateBannerPermissionOverride))
                 ) &&
                 (
                     JoinLevel == input.JoinLevel ||
                     (JoinLevel.Equals(input.JoinLevel))
                 ));
        }
Example #2
0
        public bool Equals(GroupFeatures input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MaximumMembers == input.MaximumMembers ||
                     (MaximumMembers.Equals(input.MaximumMembers))
                     ) &&
                 (
                     MaximumMembershipsOfGroupType == input.MaximumMembershipsOfGroupType ||
                     (MaximumMembershipsOfGroupType.Equals(input.MaximumMembershipsOfGroupType))
                 ) &&
                 (
                     Capabilities == input.Capabilities ||
                     (Capabilities != null && Capabilities.Equals(input.Capabilities))
                 ) &&
                 (
                     MembershipTypes == input.MembershipTypes ||
                     (MembershipTypes != null && MembershipTypes.SequenceEqual(input.MembershipTypes))
                 ) &&
                 (
                     InvitePermissionOverride == input.InvitePermissionOverride ||
                     (InvitePermissionOverride != null && InvitePermissionOverride.Equals(input.InvitePermissionOverride))
                 ) &&
                 (
                     UpdateCulturePermissionOverride == input.UpdateCulturePermissionOverride ||
                     (UpdateCulturePermissionOverride != null && UpdateCulturePermissionOverride.Equals(input.UpdateCulturePermissionOverride))
                 ) &&
                 (
                     HostGuidedGamePermissionOverride == input.HostGuidedGamePermissionOverride ||
                     (HostGuidedGamePermissionOverride != null && HostGuidedGamePermissionOverride.Equals(input.HostGuidedGamePermissionOverride))
                 ) &&
                 (
                     UpdateBannerPermissionOverride == input.UpdateBannerPermissionOverride ||
                     (UpdateBannerPermissionOverride != null && UpdateBannerPermissionOverride.Equals(input.UpdateBannerPermissionOverride))
                 ) &&
                 (
                     JoinLevel == input.JoinLevel ||
                     (JoinLevel != null && JoinLevel.Equals(input.JoinLevel))
                 ));
        }