20 lines
535 B
C#
20 lines
535 B
C#
|
|
namespace LeafWeb.Core.Entities
|
|
{
|
|
public class LeafOutputFile
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public virtual LeafInput LeafInput { get; set; }
|
|
|
|
public string Filename { get; set; }
|
|
|
|
public byte[] Contents { get; set; }
|
|
|
|
// convention for the filename which LeafCharter uses
|
|
public bool IsLeafChartFile => Filename?.StartsWith("cntrlcomparison") ?? false;
|
|
public bool IsErrorMessage => Filename?.Contains("errormessage") ?? false;
|
|
public bool IsWarningMessage => Filename?.Contains("warningmessage") ?? false;
|
|
}
|
|
}
|