Adding
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace LCU.Library.Internal.DataCleanUpModel.Models
|
||||
{
|
||||
public class NcoaUpdateRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string SourcePath { get; set; }
|
||||
[Required]
|
||||
public string Filename { get; set; }
|
||||
|
||||
public DynamicNameSetting DynamicFileSettings { get; set; }
|
||||
[Required]
|
||||
public string ErrorDestinationPath { get; set; }
|
||||
[Required]
|
||||
public List<string> EmailSummaryRecipients { get; set; }
|
||||
[Required]
|
||||
public string ExclusionFilePath { get; set; }
|
||||
[Required]
|
||||
[Range(-1000, 0, ErrorMessage = "Value must be 0 or a negative number. ")]
|
||||
public int ExclusionDays { get; set; } = -180;
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public string FinalSourcePath
|
||||
{
|
||||
get
|
||||
{
|
||||
var path = SourcePath.EndsWith("\\") ? $"{SourcePath}" : $"{SourcePath}\\";
|
||||
return path;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user