hardware_error_hardwareFailure method
{failure, select, hardware_error_notConnected{The hardware is not connected via Bluetooth. You will need to first connect the device before being able to receive data and send commands.} hardware_error_missingHardwareDoc{The hardware document is missing, please contact us for support.} hardware_error_invalidHardwareDoc{The hardware document is invalid, please contact us for support.} hardware_error_noHardware{No hardware was found in our system.} hardware_error_alreadyRegistered{This hardware is already registered to someone else. Please contact the owner to grant access.} hardware_error_searchNotFound{No results.} hardware_error_nothingToSearch{No hardware is registered. Please register hardware before searching.} hardware_error_noHardwareLocation{No locations for hardware found. Please add at least one apiary and hive to the ‹HiveManager› app.} hardware_error_sameLocationSet{The hardware is already located here. Please select another location.} other{Hardware error.}}
Implementation
String hardware_error_hardwareFailure(Object failure) {
return Intl.select(
failure,
{
'hardware_error_notConnected':
'The hardware is not connected via Bluetooth. You will need to first connect the device before being able to receive data and send commands.',
'hardware_error_missingHardwareDoc':
'The hardware document is missing, please contact us for support.',
'hardware_error_invalidHardwareDoc':
'The hardware document is invalid, please contact us for support.',
'hardware_error_noHardware': 'No hardware was found in our system.',
'hardware_error_alreadyRegistered':
'This hardware is already registered to someone else. Please contact the owner to grant access.',
'hardware_error_searchNotFound': 'No results.',
'hardware_error_nothingToSearch':
'No hardware is registered. Please register hardware before searching.',
'hardware_error_noHardwareLocation':
'No locations for hardware found. Please add at least one apiary and hive to the ‹HiveManager› app.',
'hardware_error_sameLocationSet':
'The hardware is already located here. Please select another location.',
'other': 'Hardware error.',
},
name: 'hardware_error_hardwareFailure',
desc: '',
args: [failure],
);
}