Interface IVehicleRepository
Namespace: Simplic.Logistics.Vehicle
Assembly: Simplic.Logistics.Vehicle.dll
Syntax
public interface IVehicleRepository
Methods
| Improve this Doc View SourceGetDefaultDriver(Guid)
Gets the default driver
Declaration
Guid? GetDefaultDriver(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId |
Returns
Type | Description |
---|---|
System.Nullable<System.Guid> |
GetDefaultTrailer(Guid)
Gets the default trailer
Declaration
Guid? GetDefaultTrailer(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId |
Returns
Type | Description |
---|---|
System.Nullable<System.Guid> |
GetFleetAge(Guid)
Gets the average fleet age of the selected vehicle type in years
Declaration
double GetFleetAge(Guid vehicleTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleTypeId |
Returns
Type | Description |
---|---|
System.Double |
GetPhoneNumber(Guid)
Gets the phonenumber that is connected with the vehicle
Declaration
string GetPhoneNumber(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | Vehicle id |
Returns
Type | Description |
---|---|
System.String | Phone number if exists |
GetTelematicIdentifier(Guid, Guid, DateTime)
Gets the telematic identifier of the given vehicle from the given telematic system id at the given date
Declaration
string GetTelematicIdentifier(Guid vehicleId, Guid telematicSystemId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | The vehicle Guid |
System.Guid | telematicSystemId | The telematic system Guid |
System.DateTime | date | The validation date |
Returns
Type | Description |
---|---|
System.String |
GetVehicleAge(Guid)
Gets the age of the selected vehicle in years
Declaration
double GetVehicleAge(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId |
Returns
Type | Description |
---|---|
System.Double |
GetVehicleFuelTankCapacity(Guid)
Gets the fuel tank capacity of a vehicle.
Declaration
int GetVehicleFuelTankCapacity(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | Guid of the vehicle we want to get access. |
Returns
Type | Description |
---|---|
System.Int32 | Fuel tank capacity of the vahicle. |
GetVehicleIdByTelematicIdentifier(String, Guid)
Gets the Vehicle by uts telematic identifier
Declaration
Guid GetVehicleIdByTelematicIdentifier(string telematicIdentifier, Guid systemId)
Parameters
Type | Name | Description |
---|---|---|
System.String | telematicIdentifier | The telematic identifier |
System.Guid | systemId | The telematic system |
Returns
Type | Description |
---|---|
System.Guid | Returns a Guid |
GetVehicleIdByTelematicIdentifier(String, Guid, DateTime)
Gets the Vehicle by uts telematic identifier
Declaration
Guid GetVehicleIdByTelematicIdentifier(string telematicIdentifier, Guid systemId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.String | telematicIdentifier | The telematic identifier |
System.Guid | systemId | The telematic system |
System.DateTime | date | The validation date |
Returns
Type | Description |
---|---|
System.Guid | Returns a Guid |
GetVehicleInformation(Guid, DateTime)
Gets vehicle information
Declaration
VehicleBaseInformation GetVehicleInformation(Guid vehicleId, DateTime currentDate)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | the vehicle Id |
System.DateTime | currentDate | the current DateTime |
Returns
Type | Description |
---|---|
VehicleBaseInformation |
SetVehicleLocation(Guid, String)
Declaration
Task SetVehicleLocation(Guid vehicleId, string location)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | |
System.String | location |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |