using System;
using InfluxDB.Client.Core.Flux.Domain;
namespace InfluxDB.Client.Core.Flux.Internal
{
///
/// Mapper that is used to map FluxRecord into DomainObject.
///
public interface IFluxResultMapper
{
///
/// Converts FluxRecord to DomainObject specified by Type.
///
/// Flux record
/// Type of DomainObject
/// Converted DomainObject
T ConvertToEntity(FluxRecord fluxRecord);
///
/// Converts FluxRecord to DomainObject specified by Type.
///
/// Flux record
/// Type of DomainObject
/// Converted DomainObject
object ConvertToEntity(FluxRecord fluxRecord, Type type);
}
}