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