2021-11-16 13:14:31 +05:00
|
|
|
namespace AsbCloudApp.Data
|
|
|
|
{
|
|
|
|
public class TelemetryTimeZoneDto
|
|
|
|
{
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
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();
|
2021-11-16 13:14:31 +05:00
|
|
|
}
|
|
|
|
}
|