Review of recipe config models and xml/xsd valid
This commit is contained in:
@@ -14,6 +14,37 @@ namespace Thermo.Active.Model.ConfigModels
|
||||
public string Format { get; set; }
|
||||
public int ScaleFactor { get; set; }
|
||||
public int NumDec { get; set; }
|
||||
public Dictionary<string, string> EnumVal { get; set; }
|
||||
public Dictionary<string, EnumDetail> EnumVal { get; set; }
|
||||
public string Anim { get; set; }
|
||||
}
|
||||
|
||||
public class EnumDetail
|
||||
{
|
||||
public string text { get; set; } = "";
|
||||
public string anim { get; set; } = "";
|
||||
|
||||
public EnumDetail(string text, string anim)
|
||||
{
|
||||
this.text = text;
|
||||
this.anim = anim;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (!(obj is EnumDetail item))
|
||||
return false;
|
||||
|
||||
if (text != item.text)
|
||||
return false;
|
||||
if (anim != item.anim)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user