Beispiel #1
0
        /// <summary>
        /// Returns true if ComAdobeCqProjectsPurgeSchedulerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqProjectsPurgeSchedulerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqProjectsPurgeSchedulerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ScheduledpurgeName == other.ScheduledpurgeName ||
                     ScheduledpurgeName != null &&
                     ScheduledpurgeName.Equals(other.ScheduledpurgeName)
                     ) &&
                 (
                     ScheduledpurgePurgeActive == other.ScheduledpurgePurgeActive ||
                     ScheduledpurgePurgeActive != null &&
                     ScheduledpurgePurgeActive.Equals(other.ScheduledpurgePurgeActive)
                 ) &&
                 (
                     ScheduledpurgeTemplates == other.ScheduledpurgeTemplates ||
                     ScheduledpurgeTemplates != null &&
                     ScheduledpurgeTemplates.Equals(other.ScheduledpurgeTemplates)
                 ) &&
                 (
                     ScheduledpurgePurgeGroups == other.ScheduledpurgePurgeGroups ||
                     ScheduledpurgePurgeGroups != null &&
                     ScheduledpurgePurgeGroups.Equals(other.ScheduledpurgePurgeGroups)
                 ) &&
                 (
                     ScheduledpurgePurgeAssets == other.ScheduledpurgePurgeAssets ||
                     ScheduledpurgePurgeAssets != null &&
                     ScheduledpurgePurgeAssets.Equals(other.ScheduledpurgePurgeAssets)
                 ) &&
                 (
                     ScheduledpurgeTerminateRunningWorkflows == other.ScheduledpurgeTerminateRunningWorkflows ||
                     ScheduledpurgeTerminateRunningWorkflows != null &&
                     ScheduledpurgeTerminateRunningWorkflows.Equals(other.ScheduledpurgeTerminateRunningWorkflows)
                 ) &&
                 (
                     ScheduledpurgeDaysold == other.ScheduledpurgeDaysold ||
                     ScheduledpurgeDaysold != null &&
                     ScheduledpurgeDaysold.Equals(other.ScheduledpurgeDaysold)
                 ) &&
                 (
                     ScheduledpurgeSaveThreshold == other.ScheduledpurgeSaveThreshold ||
                     ScheduledpurgeSaveThreshold != null &&
                     ScheduledpurgeSaveThreshold.Equals(other.ScheduledpurgeSaveThreshold)
                 ));
        }
Beispiel #2
0
 /// <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 (ScheduledpurgePurgeActive != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgePurgeActive.GetHashCode();
         }
         if (ScheduledpurgeTemplates != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgeTemplates.GetHashCode();
         }
         if (ScheduledpurgePurgeGroups != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgePurgeGroups.GetHashCode();
         }
         if (ScheduledpurgePurgeAssets != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgePurgeAssets.GetHashCode();
         }
         if (ScheduledpurgeTerminateRunningWorkflows != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgeTerminateRunningWorkflows.GetHashCode();
         }
         if (ScheduledpurgeDaysold != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgeDaysold.GetHashCode();
         }
         if (ScheduledpurgeSaveThreshold != null)
         {
             hashCode = hashCode * 59 + ScheduledpurgeSaveThreshold.GetHashCode();
         }
         return(hashCode);
     }
 }