[Android] Simple classes for ViewModel actions

Geoffrey Métais git at videolan.org
Fri Jun 8 17:54:24 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun  8 17:53:50 2018 +0200| [c02bb40c60ef36a820d114f9f4f2c473de7a1568] | committer: Geoffrey Métais

Simple classes for ViewModel actions

No need for data classes

> https://code.videolan.org/videolan/vlc-android/commit/c02bb40c60ef36a820d114f9f4f2c473de7a1568
---

 vlc-android/src/org/videolan/vlc/viewmodels/BaseModel.kt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/viewmodels/BaseModel.kt b/vlc-android/src/org/videolan/vlc/viewmodels/BaseModel.kt
index 5b58bd59b..a5be5bab5 100644
--- a/vlc-android/src/org/videolan/vlc/viewmodels/BaseModel.kt
+++ b/vlc-android/src/org/videolan/vlc/viewmodels/BaseModel.kt
@@ -145,8 +145,8 @@ abstract class BaseModel<T : MediaLibraryItem> : ViewModel(), RefreshModel {
 
 sealed class Update
 object Refresh : Update()
-data class MediaUpdate(val mediaList: List<MediaLibraryItem>) : Update()
-data class MediaListAddition(val mediaList: List<MediaLibraryItem>) : Update()
-data class MediaAddition(val media: MediaLibraryItem) : Update()
-data class Remove(val media: MediaLibraryItem) : Update()
-data class Filter(val query: String?) : Update()
+class MediaUpdate(val mediaList: List<MediaLibraryItem>) : Update()
+class MediaListAddition(val mediaList: List<MediaLibraryItem>) : Update()
+class MediaAddition(val media: MediaLibraryItem) : Update()
+class Remove(val media: MediaLibraryItem) : Update()
+class Filter(val query: String?) : Update()



More information about the Android mailing list