/// <summary> /// Returns true if ComAdobeCqSocialCommonsCommentsSchedulerImplSearchScheduledPosProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqSocialCommonsCommentsSchedulerImplSearchScheduledPosProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqSocialCommonsCommentsSchedulerImplSearchScheduledPosProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( EnableScheduledPostsSearch == other.EnableScheduledPostsSearch || EnableScheduledPostsSearch != null && EnableScheduledPostsSearch.Equals(other.EnableScheduledPostsSearch) ) && ( NumberOfMinutes == other.NumberOfMinutes || NumberOfMinutes != null && NumberOfMinutes.Equals(other.NumberOfMinutes) ) && ( MaxSearchLimit == other.MaxSearchLimit || MaxSearchLimit != null && MaxSearchLimit.Equals(other.MaxSearchLimit) )); }
/// <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 (EnableScheduledPostsSearch != null) { hashCode = hashCode * 59 + EnableScheduledPostsSearch.GetHashCode(); } if (NumberOfMinutes != null) { hashCode = hashCode * 59 + NumberOfMinutes.GetHashCode(); } if (MaxSearchLimit != null) { hashCode = hashCode * 59 + MaxSearchLimit.GetHashCode(); } return(hashCode); } }
public override string ToString() { return($"{NumberOfHours.ToString()} : {NumberOfMinutes.ToString()}"); }