Add data parser base classes
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
using Hcs.Broker;
|
||||
using Hcs.WebApp.Data.Hcs;
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.DataParsers
|
||||
{
|
||||
public class DataParserFactory
|
||||
{
|
||||
public IDataParser CreateResultGetter(IServiceScope scope, IClient client, Operation operation)
|
||||
{
|
||||
return operation.Type switch
|
||||
{
|
||||
Operation.OperationType.ParseHousesData_15_7_0_1 => new HousesDataParser_15_7_0_1(client, scope, operation)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user