Esempio n. 1
0
        public async Task <Boolean> sendPendingAlarmReports()
        {
            Boolean            alarmReportCheck = false;
            List <AlarmReport> alarmReports     = dBFacade.getLocalStorageAlarmReports();

            alarmReportCheck = await dBFacade.createAlarmReports(alarmReports);

            if (alarmReportCheck)
            {
                return(dBFacade.removeLocalStorageAlarmReports());
            }

            return(alarmReportCheck);
        }