38 lines
965 B
C#
38 lines
965 B
C#
using Microsoft.Extensions.Logging;
|
|
using PARR.DAL.Models;
|
|
|
|
namespace PARR.EsppTemplateSync.Services
|
|
{
|
|
internal class Manager : IManager
|
|
{
|
|
private readonly ILogger<Manager> logger;
|
|
private readonly IParserService parserService;
|
|
|
|
public Manager(ILogger<Manager> logger, IParserService parserService)
|
|
{
|
|
this.logger = logger;
|
|
this.parserService = parserService;
|
|
}
|
|
public Task<bool> ManageFileAsync(string path)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public async Task<bool> ManageStringAsync(string str)
|
|
{
|
|
bool isSuccess = true;
|
|
//TOD if (str == null || str.Length <= 2)
|
|
var template = await parserService.ParseStringAsync(str);
|
|
CheckChanges(template);
|
|
|
|
|
|
return isSuccess;
|
|
}
|
|
|
|
private void CheckChanges(Template template)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|