DD.WellWorkover.Cloud/AsbCloudApp/Data/SimpleTimezoneDto.cs

24 lines
695 B
C#
Raw Normal View History

namespace AsbCloudApp.Data
{
public class SimpleTimezoneDto
{
public double Hours { get; set; }
public string TimezoneId { get; set; }
public bool IsOverride { get; set; }
2021-11-22 11:30:08 +05:00
public override bool Equals(object obj)
{
2022-04-11 18:00:34 +05:00
if (obj is SimpleTimezoneDto tTimeZone
&& tTimeZone.Hours == Hours
&& tTimeZone.TimezoneId == TimezoneId
2021-11-22 11:30:08 +05:00
&& tTimeZone.IsOverride == IsOverride)
return true;
return false;
}
public override int GetHashCode()
=> Hours.GetHashCode()
| TimezoneId.GetHashCode()
2021-11-22 11:30:08 +05:00
| IsOverride.GetHashCode();
}
}