Adding
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LCU.Library.Internal.DispatcherModels.Models.Results
|
||||
{
|
||||
public class CleanUpJobBatchResult
|
||||
{
|
||||
public List<string> Messages { get; set; } = new List<string>();
|
||||
public int FailureCount { get; set; } = 0;
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public bool IsSuccessfull
|
||||
{
|
||||
get
|
||||
{
|
||||
return FailureCount == 0;
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public bool IsFailure
|
||||
{
|
||||
get
|
||||
{
|
||||
return FailureCount > 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void AddToFailureCount(string message)
|
||||
{
|
||||
Messages.Add(message);
|
||||
FailureCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
namespace LCU.Library.Internal.DispatcherModels.Models.Results;
|
||||
|
||||
public class PagedResult<T> where T : class
|
||||
{
|
||||
public IEnumerable<T> Items { get; set; }
|
||||
public int Total { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user