/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (ScheduledpurgeName != null) { hashCode = hashCode * 59 + ScheduledpurgeName.GetHashCode(); } if (ScheduledpurgeWorkflowStatus != null) { hashCode = hashCode * 59 + ScheduledpurgeWorkflowStatus.GetHashCode(); } if (ScheduledpurgeModelIds != null) { hashCode = hashCode * 59 + ScheduledpurgeModelIds.GetHashCode(); } if (ScheduledpurgeDaysold != null) { hashCode = hashCode * 59 + ScheduledpurgeDaysold.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComAdobeGraniteWorkflowPurgeSchedulerProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeGraniteWorkflowPurgeSchedulerProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeGraniteWorkflowPurgeSchedulerProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ScheduledpurgeName == other.ScheduledpurgeName || ScheduledpurgeName != null && ScheduledpurgeName.Equals(other.ScheduledpurgeName) ) && ( ScheduledpurgeWorkflowStatus == other.ScheduledpurgeWorkflowStatus || ScheduledpurgeWorkflowStatus != null && ScheduledpurgeWorkflowStatus.Equals(other.ScheduledpurgeWorkflowStatus) ) && ( ScheduledpurgeModelIds == other.ScheduledpurgeModelIds || ScheduledpurgeModelIds != null && ScheduledpurgeModelIds.Equals(other.ScheduledpurgeModelIds) ) && ( ScheduledpurgeDaysold == other.ScheduledpurgeDaysold || ScheduledpurgeDaysold != null && ScheduledpurgeDaysold.Equals(other.ScheduledpurgeDaysold) )); }