Refactor: notification models (#4866)

* Refactor: move notification modesl to data.models.notification

* Refactor: move notification models to notifications/models
This commit is contained in:
Benard Mathu 2022-04-28 18:23:44 +03:00 committed by GitHub
parent 8cdcd0f7c2
commit 6ad70932c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 23 additions and 11 deletions

View file

@ -17,9 +17,9 @@ import fr.free.nrw.commons.kvstore.JsonKvStore
import fr.free.nrw.commons.media.MediaDetailPagerFragment
import fr.free.nrw.commons.mwapi.OkHttpJsonApiClient
import fr.free.nrw.commons.nearby.NearbyNotificationCardView
import fr.free.nrw.commons.notification.Notification
import fr.free.nrw.commons.notification.models.Notification
import fr.free.nrw.commons.notification.NotificationController
import fr.free.nrw.commons.notification.NotificationType
import fr.free.nrw.commons.notification.models.NotificationType
import io.reactivex.Single
import io.reactivex.disposables.CompositeDisposable
import org.junit.Assert

View file

@ -8,6 +8,8 @@ import fr.free.nrw.commons.R
import fr.free.nrw.commons.ShadowActionBar
import fr.free.nrw.commons.TestAppAdapter
import fr.free.nrw.commons.TestCommonsApplication
import fr.free.nrw.commons.notification.models.Notification
import fr.free.nrw.commons.notification.models.NotificationType
import fr.free.nrw.commons.utils.NetworkUtils
import org.junit.Assert
import org.junit.Before

View file

@ -1,5 +1,6 @@
package fr.free.nrw.commons.notification
import fr.free.nrw.commons.notification.models.Notification
import org.junit.Before
import org.junit.Test
import org.mockito.ArgumentMatchers

View file

@ -4,6 +4,8 @@ import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import fr.free.nrw.commons.TestCommonsApplication
import fr.free.nrw.commons.notification.models.Notification
import fr.free.nrw.commons.notification.models.NotificationType
import org.junit.Assert
import org.junit.Before
import org.junit.Test