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