forked from ddrilling/AsbCloudServer
24 lines
703 B
C#
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();
|
|
}
|
|
} |