Files
mapo-iob-man/IOB-MAN.Core/SDK/dataConfTSVC.cs
T
2025-06-17 09:15:06 +02:00

52 lines
1.2 KiB
C#

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using static IOB_MAN.Core.CoreEnum;
using static IOB_MAN.Core.SDK.Enums;
namespace IOB_MAN.Core.SDK
{
public class dataConfTSVC : dataConf
{
[JsonConverter(typeof(StringEnumConverter))]
public VC_func func { get; set; } = VC_func.MAX;
public int period { get; set; } = 60;
public bool sendEnabled { get; set; } = true;
public double? thresholdAbs { get; set; }
public double? thresholdPerc { get; set; }
public virtual object Clone()
{
return (dataConfTSVC)this.MemberwiseClone();
}
public virtual bool IsEqual(dataConfTSVC refObj)
{
if (refObj == null)
return false;
if (this.period != refObj.period)
return false;
if (this.sendEnabled != refObj.sendEnabled)
return false;
if (this.thresholdAbs != refObj.thresholdAbs)
return false;
if (this.thresholdPerc != refObj.thresholdPerc)
return false;
return ((dataConf)this).IsEqual((dataConf)refObj);
}
}
}