Skip to content

Vehicle Information

Function: IsConnected

bool IsConnected()
Description:
Checks if the vehicle is currently connected to the system.

Parameters:
None.

Returns:
- true if the vehicle is connected.
- false if the vehicle is not connected.

Usage Example
1
2
3
4
5
6
7
8
if (IsConnected())
{
    PrintLine("Vehicle is connected!");
}
else
{
    PrintLine("Vehicle is not connected.");
}

Function: GetCarName

string GetCarName()
Description:
Retrieves the name of the connected vehicle.

Parameters:
None.

Returns:
- Name of the car as a string.

Usage Example
string carName = GetCarName();
PrintLine($"Connected car name: {carName}");

Function: GetModelYear

int GetModelYear()
Description:
Gets the model year of the connected vehicle.

Parameters:
None.

Returns:
- Model year as an integer.

Usage Example
int year = GetModelYear();
PrintLine($"Vehicle Model Year: {year}");

Function: GetVin

string GetVin()
Description:
Fetches the Vehicle Identification Number (VIN) of the connected car.

Parameters:
None.

Returns:
- VIN of the vehicle as a string.

Usage Example
string vin = GetVin();
PrintLine($"Vehicle VIN: {vin}");

Function: CheckIgnition

bool? CheckIgnition()

Description:
Checks the status of the ignition.

Return Value:
Returns true if the ignition is on, false if it's off, and null if the ignition status is unknown or if an error occurred.

Usage Example
bool? ignitionStatus = CheckIgnition();
PrintLine($"Ignition Status: {ignitionStatus}");

Function: HasBackup

bool HasBackup()

Description:
Determines if a backup of the current connected vehicle exists.

Return Value:
Returns true if a backup exists, otherwise false.

Usage Example
bool backupExists = HasBackup();
PrintLine($"Backup Exists: {backupExists}");