Beispiel #1
0
        public override int GetHashCode()
        {
            int hashCode = 98566356;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            if (DeletedObjectIds != null)
            {
                hashCode += DeletedObjectIds.GetHashCode();
            }

            if (DeletedAt != null)
            {
                hashCode += DeletedAt.GetHashCode();
            }

            return(hashCode);
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is DeleteCatalogObjectResponse other &&
                   ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) &&
                   ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true)) &&
                   ((DeletedObjectIds == null && other.DeletedObjectIds == null) || (DeletedObjectIds?.Equals(other.DeletedObjectIds) == true)) &&
                   ((DeletedAt == null && other.DeletedAt == null) || (DeletedAt?.Equals(other.DeletedAt) == true)));
        }