namespace TINK.Model.State
{
public static class StateInfoHelper
{
///
/// Gets whether bike is available or occupied, i.e. reserved or booked.
///
/// State to be info from.
/// True if bike is reserved to booked.
public static bool IsOccupied(this InUseStateEnum state)
=> state != InUseStateEnum.Disposable && state != InUseStateEnum.FeedbackPending;
}
}