using InfluxDB.Client.Api.Domain;
using InfluxDB.Client.Core.Flux.Internal;
using InfluxDB.Client.Writes;
namespace InfluxDB.Client
{
///
/// An implementation of this class is used to convert DomainObject entity into
/// and back to DomainObject.
///
public interface IDomainObjectMapper : IFluxResultMapper
{
///
/// Converts DomainObject to corresponding PointData.
///
/// DomainObject to convert
/// Required timestamp precision
/// Type of DomainObject
/// Converted DataPoint
PointData ConvertToPointData(T entity, WritePrecision precision);
}
}