Fueling

State

Gas flap lock

Declaration

getGasFlapLock()

Example

val state:Fueling.State
assertTrue(state.gasFlapLock.value == LockState.LOCKED)
// Gas flap is locked

Gas flap position

Declaration

getGasFlapPosition()

Example

val state:Fueling.State
assertTrue(state.gasFlapPosition.value == Position.CLOSED)
// Gas flap is closed

Setters

Control gas flap

Declaration

public ControlGasFlap(@Nullable LockState gasFlapLock, @Nullable Position gasFlapPosition)

Example

val controlGasFlap = Fueling.ControlGasFlap(LockState.LOCKED, Position.CLOSED)    

Getters

Get Fueling property availability information

Declaration

public GetGasFlapStateAvailability()
public GetGasFlapStateAvailability(byte... propertyIdentifiers)

Example

// get all property availabilities
val getAvailability = GetGasFlapStateAvailability()
// get gasFlapLock and gasFlapPosition property availabilities
val getAvailabilityProperties = GetGasFlapStateAvailability(0x02, 0x03)

Get gas flap state

Declaration

public GetGasFlapState()
public GetGasFlapState(byte... propertyIdentifiers)            

Example

// get all properties
val getState = GetGasFlapState()
// get gasFlapLock and gasFlapPosition properties
val getStateProperties = GetGasFlapState(0x02, 0x03)