First Commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace ADS.Apis.Gps.Application.Units;
|
||||
|
||||
public interface IUnitLocationQueryService
|
||||
{
|
||||
Task<UnitLastLocationResponse?> GetLastLocationByNoEconomicoAsync(
|
||||
int cveUsuario,
|
||||
string noEconomico,
|
||||
CancellationToken ct = default);
|
||||
Task<IReadOnlyList<UnitClientLocationResponse>> GetLocationsByClientAsync(
|
||||
int cveUsuario,
|
||||
int cveCliente,
|
||||
CancellationToken ct = default);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace ADS.Apis.Gps.Application.Units;
|
||||
|
||||
public sealed class UnitClientLocationResponse
|
||||
{
|
||||
public string? NoEconomico { get; set; }
|
||||
public decimal? Velocidad { get; set; }
|
||||
public bool? Encendido { get; set; }
|
||||
public DateTime? FechaTrama { get; set; }
|
||||
public string? Punto { get; set; }
|
||||
public double? Longitud { get; set; }
|
||||
public double? Latitud { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace ADS.Apis.Gps.Application.Units;
|
||||
|
||||
public sealed class UnitLastLocationResponse
|
||||
{
|
||||
public string? NoEconomico { get; set; }
|
||||
public decimal? Velocidad { get; set; }
|
||||
public bool? Encendido { get; set; }
|
||||
public DateTime? FechaTrama { get; set; }
|
||||
public string? Punto { get; set; }
|
||||
public double? Longitud { get; set; }
|
||||
public double? Latitud { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user