NotificationsContract.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Nextcloud Android client application
  3. *
  4. * @author Tobias Kaminsky
  5. * Copyright (C) 2019 Tobias Kaminsky
  6. * Copyright (C) 2019 Nextcloud GmbH
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. */
  21. package com.owncloud.android.ui.notifications;
  22. import com.owncloud.android.lib.resources.notifications.models.Notification;
  23. import com.owncloud.android.ui.adapter.NotificationListAdapter;
  24. public interface NotificationsContract {
  25. interface View {
  26. void onRemovedNotification(boolean isSuccess);
  27. void removeNotification(NotificationListAdapter.NotificationViewHolder holder);
  28. void onRemovedAllNotifications(boolean isSuccess);
  29. void onActionCallback(boolean isSuccess,
  30. Notification notification,
  31. NotificationListAdapter.NotificationViewHolder holder);
  32. }
  33. }