Piscal client - check status and retrieve file skeleton in place

This commit is contained in:
2016-02-19 11:45:16 -05:00
parent 6534fc142b
commit 75fa448a0f
13 changed files with 345 additions and 107 deletions
+3 -5
View File
@@ -1,6 +1,5 @@
using AutoMapper;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Remote
{
@@ -8,7 +7,7 @@ namespace LeafWeb.Core.Remote
{
private static readonly IMapper Mapper;
public int Id { get; set; }
public int LeafInputId { get; set; }
public string Filename { get; set; }
public byte[] Contents { get; set; }
public string DirectoryName { get; set; }
@@ -20,9 +19,8 @@ namespace LeafWeb.Core.Remote
{
cfg.CreateMap<LeafInputFile, PiscalLeafInputFile>()
.ForMember(dest => dest.DirectoryName, opt => opt.MapFrom(
src =>
$"{src.Id}_{src.LeafInput.Name.FilterAlphaNumeric()}_{src.LeafInput.Identifier.FilterAlphaNumeric()}"
));
src => PiscalUtility.GetPiscalDirectoryName(src)))
.ForMember(dest => dest.LeafInputId, opt => opt.MapFrom(src => src.Id));
});
Mapper = config.CreateMapper();
}