DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/TelemetryDataSpinService.cs
Фролов 0b1f9683b9 fix jsonSerializer settings;
reafctor TelemetryHub;
Add wellDepth into TelemetryMessage
2021-09-17 16:24:01 +05:00

31 lines
912 B
C#

using AsbCloudApp.Data;
using AsbCloudApp.Services;
using AsbCloudDb.Model;
using AsbCloudInfrastructure.Services.Cache;
using Mapster;
namespace AsbCloudInfrastructure.Services
{
public class TelemetryDataSpinService : TelemetryDataService<AsbCloudApp.Data.TelemetryDataSpinDto, AsbCloudDb.Model.TelemetryDataSpin>
{
public TelemetryDataSpinService(
IAsbCloudDbContext db,
ITelemetryService telemetryService,
CacheDb cacheDb)
: base(db, telemetryService, cacheDb)
{ }
public override TelemetryDataSpin Convert(TelemetryDataSpinDto src)
{
var entity = src.Adapt<TelemetryDataSpin>();
return entity;
}
public override TelemetryDataSpinDto Convert(TelemetryDataSpin src)
{
var dto = src.Adapt<TelemetryDataSpinDto>();
return dto;
}
}
}