dispatchNotificationReport method

T? dispatchNotificationReport(
  1. List<int> data
)

Implementation

T? dispatchNotificationReport(List<int> data) {
  var report = NotificationReport(data);
  switch (report.notificationType) {
    case /* 0x01 */ NOTIFICATION_TYPE_SMOKE_ALARM:
      return handleSmokeAlarmNotification(report);
    case /* 0x02 */ NOTIFICATION_TYPE_CO_ALARM:
      return handleCoAlarmNotification(report);
    case /* 0x03 */ NOTIFICATION_TYPE_CO2_ALARM:
      return handleCo2AlarmNotification(report);
    case /* 0x04 */ NOTIFICATION_TYPE_HEAT_ALARM:
      return handleHeatAlarmNotification(report);
    case /* 0x05 */ NOTIFICATION_TYPE_WATER_ALARM:
      return handleWaterAlarmNotification(report);
    case /* 0x06 */ NOTIFICATION_TYPE_ACCESS_CONTROL:
      return handleAccessControlNotification(report);
    case /* 0x07 */ NOTIFICATION_TYPE_HOME_SECURITY:
      return handleHomeSecurityNotification(report);
    case /* 0x08 */ NOTIFICATION_TYPE_POWER_MANAGEMENT:
      return handlePowerManagementNotification(report);
    case /* 0x09 */ NOTIFICATION_TYPE_SYSTEM:
      return handleSystemNotification(report);
    case /* 0x0A */ NOTIFICATION_TYPE_EMERGENCY_ALARM:
      return handleEmergencyAlarmNotification(report);
    case /* 0x0B */ NOTIFICATION_TYPE_CLOCK:
      return handleClockNotification(report);
    case /* 0x0C */ NOTIFICATION_TYPE_APPLIANCE:
      return handleApplianceNotification(report);
    case /* 0x0D */ NOTIFICATION_TYPE_HOME_HEALTH:
      return handleHomeHealthNotification(report);
    case /* 0x0E */ NOTIFICATION_TYPE_SIREN:
      return handleSirenNotification(report);
    case /* 0x0F */ NOTIFICATION_TYPE_WATER_VALVE:
      return handleWaterValveNotification(report);
    case /* 0x10 */ NOTIFICATION_TYPE_WEATHER_ALARM:
      return handleWeatherAlarmNotification(report);
    case /* 0x11 */ NOTIFICATION_TYPE_IRRIGATION:
      return handleIrrigationNotification(report);
    case /* 0x12 */ NOTIFICATION_TYPE_GAS_ALARM:
      return handleGasAlarmNotification(report);
    case /* 0x13 */ NOTIFICATION_TYPE_PEST_CONTROL:
      return handlePestControlNotification(report);
    case /* 0x14 */ NOTIFICATION_TYPE_LIGHT_SENSOR:
      return handleLightSensorNotification(report);
    case /* 0x15 */ NOTIFICATION_TYPE_WATER_QUALITY_MONITORING:
      return handleWaterQualityMonitoringNotification(report);
    case /* 0x16 */ NOTIFICATION_TYPE_HOME_MONITORING:
      return handleHomeMonitoringNotification(report);
    case /* 0xFF */ NOTIFICATION_TYPE_REQUEST_PENDING:
      return handleRequestPendingNotification(report);
    default:
      return handleUnknownNotificationType(report);
  }
}