2015-05-20 23:22:10 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2013-09-20 23:56:17 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Processes
|
|
|
|
|
{
|
|
|
|
|
public class ProcessOutput
|
|
|
|
|
{
|
2015-05-20 23:22:10 +00:00
|
|
|
|
public int ExitCode { get; set; }
|
|
|
|
|
public List<ProcessOutputLine> Lines { get; set; }
|
2013-09-20 23:56:17 +00:00
|
|
|
|
|
|
|
|
|
public ProcessOutput()
|
|
|
|
|
{
|
2015-05-20 23:22:10 +00:00
|
|
|
|
Lines = new List<ProcessOutputLine>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<ProcessOutputLine> Standard
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Lines.Where(c => c.Level == ProcessOutputLevel.Standard).ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<ProcessOutputLine> Error
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Lines.Where(c => c.Level == ProcessOutputLevel.Error).ToList();
|
|
|
|
|
}
|
2013-09-20 23:56:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|