DD.WellWorkover.Cloud/AsbCloudApp/Data/SimpleTimezoneDto.cs
2022-04-11 18:00:34 +05:00

24 lines
695 B
C#

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();
}
}