D2tOdometer 26.4.15
dotnet add package D2tOdometer --version 26.4.15
NuGet\Install-Package D2tOdometer -Version 26.4.15
<PackageReference Include="D2tOdometer" Version="26.4.15" />
<PackageVersion Include="D2tOdometer" Version="26.4.15" />
<PackageReference Include="D2tOdometer" />
paket add D2tOdometer --version 26.4.15
#r "nuget: D2tOdometer, 26.4.15"
#:package D2tOdometer@26.4.15
#addin nuget:?package=D2tOdometer&version=26.4.15
#tool nuget:?package=D2tOdometer&version=26.4.15
D2T Odometer package
This is a library that is able to get odometer records for a driver or vehicle
Minimum requirements
The package requires a minimum of .NET 8 to be used in the project
Installation
go to Project ⇒ Manage nuget packages and search for D2tOdometer
Also the AzureStorageClient package is required with at least version 1.2.0 this should be installed along with the package
Once the package is installed, add the following to your Program.cs:
builder.Services.AddScoped<IOdometerService, OdometerService>();
Identifiers
The identifiers for the available assets are as following:
Vehicle: License plate to lowercase and stripes removed (aabb01)
Driver: Driver card id limited to the first 13 characters (0101010101010)
Available functions
The package has support for the following functions:
GetAllRecords(identifier, companyId, start, end, type) // Get all odometer records within the given range
GetNearestRecord(identifier, companyId, date, type) // Getting the nearest odometer record to the given date, with a 6 hour extra margin by default
GetNearestRecord(identifier, companyId, date, marginInHours, type) // Get the nearest odometer record to the given date, with an extra margin based on the margin in hours
type = OdometerRepositoryType, which is either Driver or vehicle
marginInHours = The amount of extra hours the query will take before and after the given date for the query
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- AzureStorageClient (>= 1.3.2)
-
net9.0
- AzureStorageClient (>= 1.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.