namespace AsbCloudApp.Data { public class TelemetryTimeZoneDto { public double Hours { get; set; } public string TimeZoneId { get; set; } public bool IsOverride { get; set; } public override bool Equals(object obj) { if(obj is TelemetryTimeZoneDto tTimeZone && tTimeZone.Hours == Hours && tTimeZone.TimeZoneId == TimeZoneId && tTimeZone.IsOverride == IsOverride) return true; return false; } public override int GetHashCode() => Hours.GetHashCode() | TimeZoneId.GetHashCode() | IsOverride.GetHashCode(); } }