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