DD.WellWorkover.Cloud/AsbCloudApp/Data/TelemetryTimeZoneDto.cs
2021-11-22 11:30:08 +05:00

24 lines
703 B
C#

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