mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
The move!
This commit is contained in:
parent
1daf480b1b
commit
25526cc4d9
1147 changed files with 85 additions and 8524 deletions
|
@ -1,59 +0,0 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Ombi.Common.Processes
|
||||
{
|
||||
public class ProcessOutput
|
||||
{
|
||||
public int ExitCode { get; set; }
|
||||
public List<ProcessOutputLine> Lines { get; set; }
|
||||
|
||||
public ProcessOutput()
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class ProcessOutputLine
|
||||
{
|
||||
public ProcessOutputLevel Level { get; set; }
|
||||
public string Content { get; set; }
|
||||
public DateTime Time { get; set; }
|
||||
|
||||
public ProcessOutputLine(ProcessOutputLevel level, string content)
|
||||
{
|
||||
Level = level;
|
||||
Content = content;
|
||||
Time = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0} - {1} - {2}", Time, Level, Content);
|
||||
}
|
||||
}
|
||||
|
||||
public enum ProcessOutputLevel
|
||||
{
|
||||
Standard = 0,
|
||||
Error = 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue