private async Task HandleRemoveTap(Courses course) { await DeleteNotification(course); var temp = NotificationCourses; temp.Remove(course); NotificationCourses = temp; var topic = NotificationList.Find(un => un.Topic.Contains(course.Id.ToString())).Topic; DependencyService.Get <IFCMNotificationSubscriber>() .UnSubscribe(topic); await GetNotifications(); InitNotificationList(); await InitLists(); }
private async Task HandleRemoveTap(Faculty faculty) { await DeleteNotification(faculty); var temp = NotificationFaculty; temp.Remove(faculty); NotificationFaculty = temp; var topic = NotificationList.Find(un => un.Topic.Contains(faculty.Id.ToString())).Topic; DependencyService.Get <IFCMNotificationSubscriber>() .UnSubscribe(topic); await GetNotifications(); InitNotificationList(); await InitLists(); }