-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20072 from wordpress-mobile/feature/notifications…
…_refresh_p1 Notifications Refresh (Phase 1)
- Loading branch information
Showing
63 changed files
with
2,391 additions
and
1,713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
WordPress/src/main/java/org/wordpress/android/datasets/wrappers/NotificationsTableWrapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.wordpress.android.datasets.wrappers | ||
|
||
import dagger.Reusable | ||
import org.wordpress.android.datasets.NotificationsTable | ||
import org.wordpress.android.models.Note | ||
import javax.inject.Inject | ||
|
||
@Reusable | ||
class NotificationsTableWrapper @Inject constructor() { | ||
fun saveNote(note: Note): Boolean = NotificationsTable.saveNote(note) | ||
|
||
fun saveNotes(notes: List<Note>, clearBeforeSaving: Boolean) { | ||
NotificationsTable.saveNotes(notes, clearBeforeSaving) | ||
} | ||
} |
Oops, something went wrong.