using PARR.Constants;
using PARR.DAL.Models;
namespace PARR.EsppSync
{
///
/// Делегат парсинга из строки в модель EsppObject
///
///
///
///
public delegate EsppObject ParserHandlerDelegate(string str) where EsppObject : class, IEsppObject;
///
/// Конвертирует Template в модель для сравнения
///
///
///
///
public delegate EsppObject ConvertDbObjToComparisonObjHandlerDelegate(Template template) where EsppObject : class, IEsppObject;
public interface ISyncService where EsppObject : class, IEsppObject
{
Task SyncEsppObjectAsync(string str, ParserHandlerDelegate parser, ConvertDbObjToComparisonObjHandlerDelegate converterToEsppObject);
}
}