Add output file type, collect all files
This commit is contained in:
@@ -10,7 +10,7 @@ namespace LeafWeb.Core.Remote
|
||||
private static readonly IMapper Mapper;
|
||||
public int LeafInputId { get; set; }
|
||||
public string PhotosyntheticType { get; set; }
|
||||
public string DirectoryName { get; set; }
|
||||
public string PiscalDirectoryName { get; set; }
|
||||
public bool SuppressStorageCopy { get; set; }
|
||||
public PiscalLeafInputFile[] InputFiles { get; set; }
|
||||
public string NotifyCompleteUrl { get; set; }
|
||||
@@ -21,7 +21,7 @@ namespace LeafWeb.Core.Remote
|
||||
new MapperConfiguration(cfg =>
|
||||
{
|
||||
cfg.CreateMap<LeafInput, PiscalLeafInput>()
|
||||
.ForMember(dest => dest.DirectoryName,
|
||||
.ForMember(dest => dest.PiscalDirectoryName,
|
||||
opt => opt.MapFrom(src => PiscalUtility.GetPiscalDirectoryName(src)))
|
||||
.ForMember(dest => dest.LeafInputId, opt => opt.MapFrom(src => src.Id))
|
||||
.ForMember(dest => dest.InputFiles, opt => opt.MapFrom(src => src.InputFiles.Select(f => new PiscalLeafInputFile(f)).ToArray()))
|
||||
|
||||
Reference in New Issue
Block a user