public override int GetHashCode() { unchecked { var hashCode = PetId; hashCode = (hashCode * 397) ^ MetricId; hashCode = (hashCode * 397) ^ Value; hashCode = (hashCode * 397) ^ LastInteractionTime.GetHashCode(); return(hashCode); } }
protected bool Equals(PetMetric other) { return(PetId == other.PetId && MetricId == other.MetricId && Value == other.Value && LastInteractionTime.HumanEquals(other.LastInteractionTime)); }