Beispiel #1
0
        public async Task <bool> CheckIfAlarmAlreadyExistAsync(string id)
        {
            bool hasPermission = await ASkForPermissionsAsync();

            if (!hasPermission || appCalendar == null)
            {
                return(false);
            }

            var calendarEvent = eventsStore.GetCalendarItem(id);

            if (calendarEvent == null)
            {
                return(false);
            }

            return(true);
        }