/// <summary></summary> public override int GetHashCode() { var code = 13; // Calculate hash on each properties one by one code = (code * 7) + Id.GetHashCode(); if (ItemReference != null) { code = (code * 7) + ItemReference.GetHashCode(); } if (this.AnnotationsUrl != null) { code = (code * 7) + AnnotationsUrl.GetHashCode(); } if (this.CategoryUrl != null) { code = (code * 7) + CategoryUrl.GetHashCode(); } if (this.CreationTime != null) { code = (code * 7) + CreationTime.GetHashCode(); } code = (code * 7) + IsAckRequired.GetHashCode(); code = (code * 7) + IsAcknowledged.GetHashCode(); code = (code * 7) + IsDiscarded.GetHashCode(); if (this.Message != null) { code = (code * 7) + Message.GetHashCode(); } if (this.Name != null) { code = (code * 7) + Name.GetHashCode(); } if (this.ObjectUrl != null) { code = (code * 7) + ObjectUrl.GetHashCode(); } code = (code * 7) + Priority.GetHashCode(); if (this.Self != null) { code = (code * 7) + Self.GetHashCode(); } if (this.TypeUrl != null) { code = (code * 7) + TypeUrl.GetHashCode(); } if (this.Type != null) { code = (code * 7) + Type.GetHashCode(); } if (this.Category != null) { code = (code * 7) + Category.GetHashCode(); } return(code); }
/// <summary></summary> public override int GetHashCode() { var code = 13; // Calculate hash on each properties one by one code = (code * 7) + Id.GetHashCode(); if (CreationTime != null) { code = (code * 7) + CreationTime.GetHashCode(); } if (this.ActionTypeUrl != null) { code = (code * 7) + ActionTypeUrl.GetHashCode(); } if (this.ActionType != null) { code = (code * 7) + ActionType.GetHashCode(); } code = (code * 7) + Discarded.GetHashCode(); if (this.StatusUrl != null) { code = (code * 7) + StatusUrl.GetHashCode(); } if (this.Status != null) { code = (code * 7) + Status.GetHashCode(); } if (this.ErrorString != null) { code = (code * 7) + ErrorString.GetHashCode(); } if (this.User != null) { code = (code * 7) + User.GetHashCode(); } if (this.ObjectUrl != null) { code = (code * 7) + ObjectUrl.GetHashCode(); } if (this.AnnotationsUrl != null) { code = (code * 7) + AnnotationsUrl.GetHashCode(); } if (this.Self != null) { code = (code * 7) + Self.GetHashCode(); } return(code); }