feat(socials): ratings and progress

This commit is contained in:
aayush262 2024-04-07 21:31:15 +05:30
parent e49f0dbf32
commit 3666758e6e
12 changed files with 137 additions and 33 deletions

View file

@ -5,5 +5,10 @@ data class User(
val name: String,
val pfp: String?,
val banner: String?,
val info: String? = null,
// for media
val status: String? = null,
val score: Float? = null,
val progress: Int? = null,
val totalEpisodes : Int? = null,
val nextAiringEpisode : Int? = null,
)

View file

@ -40,7 +40,7 @@ class UsersAdapter(private val user: ArrayList<User>) : RecyclerView.Adapter<Use
setAnimation(b.root.context, b.root)
val user = user[position]
b.profileUserAvatar.loadImage(user.pfp)
blurImage(b.profileBannerImage, user.banner ?: user.pfp)
b.profileBannerImage.loadImage(user.banner ?: user.pfp)
b.profileUserName.text = user.name
}