Files
cms_thermo_active/Step.Model/DTOModels/ToolModels/DTOEdgeModel.cs
T
2018-05-03 14:44:48 +02:00

33 lines
846 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using static CMS_CORE_Library.DataStructures;
namespace Step.Model.DTOModels.ToolModels
{
public class DTOEdgeModel
{
[Required]
public double ResidualLife;
[Required]
public double NominalLife;
[Required]
public double PreAlmLife;
[Required]
public Dictionary<string, double> EdgeAdditionalParams;
public static explicit operator EdgeModel(DTOEdgeModel obj)
{
return new EdgeModel()
{
Id = 0,
NominalLife = obj.NominalLife,
ResidualLife = obj.ResidualLife,
PreAlmLife = obj.PreAlmLife,
EdgeAdditionalParams = obj.EdgeAdditionalParams
};
}
}
}