using System.Collections.Generic; using System.Linq; namespace NzbDrone.Common.Processes { public class ProcessOutput { public int ExitCode { get; set; } public List Lines { get; set; } public ProcessOutput() { Lines = new List(); } public List Standard { get { return Lines.Where(c => c.Level == ProcessOutputLevel.Standard).ToList(); } } public List Error { get { return Lines.Where(c => c.Level == ProcessOutputLevel.Error).ToList(); } } } }