MazdaApiLib/MazdaApiLocks.cs
/// <summary>
/// Locks the doors of the vehicle asynchronously.
/// </summary>
/// <param name="internalVin">The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles</param>
Locks the doors of the vehicle asynchronously.
Locks the doors of the vehicle asynchronously .
public async Task LockDoorAsync(string internalVin)
        {
            CachedLockState lockState = GetCachedLockState(internalVin);
            lockState.RequestedLockState = true;
            lockState.RequestedLockTimestamp = DateTime.UtcNow;
            await _controller.SetDoorLockAsync(internalVin, true);
        }
public async Task LockDoorAsync ( string internalVin ) { CachedLockState lockState = GetCachedLockState ( internalVin ) ; lockState . RequestedLockState = true ; lockState . RequestedLockTimestamp = DateTime . UtcNow ; await _controller . SetDoorLockAsync ( internalVin , true ) ; }
Locks the doors of the vehicle asynchronously.
Locks the doors of the vehicle asynchronously .
internalVin
string
The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles
The internal vehicle identity number for the vehicle which can be found with calls to methods that return vehicles