-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 #455 from pranavkonidena/MOBILE-203/UserPages-1.3
Mobile 203/user pages 1.3
- Loading branch information
Showing
27 changed files
with
1,092 additions
and
76 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
8 changes: 5 additions & 3 deletions
8
app/src/main/java/org/listenbrainz/android/model/user/Artist.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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Artist( | ||
val artist_mbid: String, | ||
val artist_name: String, | ||
val listen_count: Int | ||
@SerializedName("artist_mbid") val artistMbid: String, | ||
@SerializedName("artist_name") val artistName: String, | ||
@SerializedName("listen_count") val listenCount: Int | ||
) |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/listenbrainz/android/model/user/ListeningActivity.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,12 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ListeningActivity( | ||
@SerializedName("from_ts") val fromTs: Int? = null, | ||
@SerializedName("listen_count") val listenCount: Int? = null, | ||
@SerializedName("time_range") val timeRange: String? = null, | ||
@SerializedName("to_ts") val toTs: Int? = null, | ||
var componentIndex: Int? = null, | ||
var color: Int? = null, | ||
) |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/listenbrainz/android/model/user/ListeningActivityPayload.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,12 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ListeningActivityPayload( | ||
@SerializedName("from_ts") val fromTs: Int? = null, | ||
@SerializedName("last_updated") val lastUpdated: Int? = null, | ||
@SerializedName("listening_activity") val listeningActivity: List<ListeningActivity?>? = null, | ||
val range: String? = null, | ||
@SerializedName("to_ts") val toTs: Int? = null, | ||
@SerializedName("user_id") val userId: String? = null, | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/org/listenbrainz/android/model/user/Recording.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,16 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Recording( | ||
@SerializedName("artist_mbids") val artistMbids: List<String>? = listOf(), | ||
@SerializedName("artist_name") val artistName: String? = "", | ||
val artists: List<TopArtistInfo>? = listOf(), | ||
@SerializedName("caa_id") val caaId: Long? = 0, | ||
@SerializedName("caa_release_mbid") val caaReleaseMbid: String? = "", | ||
@SerializedName("listen_count") val listenCount: Int? = 0, | ||
@SerializedName("recording_mbid") val recordingMbid: String? = "", | ||
@SerializedName("release_mbid") val releaseMbid: String? = "", | ||
@SerializedName("release_name") val releaseName: String? = "", | ||
@SerializedName("track_name") val trackName: String? = "" | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/org/listenbrainz/android/model/user/Release.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,14 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Release( | ||
@SerializedName("artist_mbids") val artistMbids: List<String>? = listOf(), | ||
@SerializedName("artist_name") val artistName: String? = "", | ||
val artists: List<TopArtistInfo>? = listOf(), | ||
@SerializedName("caa_id") val caaId: Long? = 0, | ||
@SerializedName("caa_release_mbid") val caaReleaseMbid: String? = "", | ||
@SerializedName("listen_count") val listenCount: Int? = 0, | ||
@SerializedName("release_mbid") val releaseMbid: String? = "", | ||
@SerializedName("release_name") val releaseName: String? = "" | ||
) |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/org/listenbrainz/android/model/user/TopAlbums.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,5 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
data class TopAlbums( | ||
val payload: TopAlbumsPayload? = TopAlbumsPayload() | ||
) |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/org/listenbrainz/android/model/user/TopAlbumsPayload.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.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TopAlbumsPayload( | ||
val count: Int? = 0, | ||
@SerializedName("from_ts") val fromTs: Int? = 0, | ||
@SerializedName("last_updated") val lastUpdated: Int? = 0, | ||
@SerializedName("offset") val offset: Int? = 0, | ||
val range: String? = "", | ||
val releases: List<Release>? = listOf(), | ||
@SerializedName("to_ts") val toTs: Int? = 0, | ||
@SerializedName("total_release_count") val totalReleaseCount: Int? = 0, | ||
@SerializedName("user_id") val userId: String? = "" | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/org/listenbrainz/android/model/user/TopArtistInfo.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,9 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TopArtistInfo( | ||
@SerializedName("artist_credit_name") val artistCreditName: String? = null, | ||
@SerializedName("artist_mbid") val artistMbid: String? = null, | ||
@SerializedName("join_phrase") val joinPhrase: String? = null | ||
) |
20 changes: 11 additions & 9 deletions
20
app/src/main/java/org/listenbrainz/android/model/user/TopArtistsPayload.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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TopArtistsPayload( | ||
val artists: List<Artist>, | ||
val count: Int, | ||
val from_ts: Int, | ||
val last_updated: Int, | ||
val offset: Int, | ||
val range: String, | ||
val to_ts: Int, | ||
val total_artist_count: Int, | ||
val user_id: String | ||
val artists: List<Artist>, | ||
val count: Int, | ||
@SerializedName("from_ts") val fromTs: Int, | ||
@SerializedName("last_updated") val lastUpdated: Int, | ||
val offset: Int, | ||
val range: String, | ||
@SerializedName("to_ts") val toTs: Int, | ||
@SerializedName("total_artist_count") val totalArtistCount: Int, | ||
@SerializedName("user_id") val userId: String | ||
) |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/org/listenbrainz/android/model/user/TopSongPayload.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.listenbrainz.android.model.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TopSongPayload( | ||
val count: Int? = 0, | ||
@SerializedName("from_ts") val fromTs: Int? = 0, | ||
@SerializedName("last_updated") val lastUpdated: Int? = 0, | ||
val offset: Int? = 0, | ||
val range: String? = "", | ||
val recordings: List<Recording>? = listOf(), | ||
@SerializedName("to_ts") val toTs: Int? = 0, | ||
@SerializedName("total_recording_count") val totalRecordingCount: Int? = 0, | ||
@SerializedName("user_id") val userId: String? = "" | ||
) |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/org/listenbrainz/android/model/user/TopSongs.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,5 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
data class TopSongs( | ||
val payload: TopSongPayload? = TopSongPayload() | ||
) |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/org/listenbrainz/android/model/user/UserListeningActivity.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,5 @@ | ||
package org.listenbrainz.android.model.user | ||
|
||
data class UserListeningActivity( | ||
val payload: ListeningActivityPayload? = null | ||
) |
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
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
Oops, something went wrong.