public VacuumConsumableStatus consumableStatus ( ) throws CommandExecutionException { JSONArray resp = sendToArray ( "get_consumable" ) ; JSONObject stat = resp . optJSONObject ( 0 ) ; if ( stat == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; return new VacuumConsumableStatus ( stat ) ; }
Get the vacuums consumables status .