12 lines
587 B
Kotlin
Raw Normal View History

2023-02-11 23:41:23 -06:00
package com.isolaatti.utils
import com.isolaatti.connectivity.RetrofitClient.Companion.BASE_URL
object UrlGen {
2023-11-19 22:24:19 -06:00
const val IMAGE_MODE_SMALL = "small"
const val IMAGE_MODE_REDUCED = "reduced"
const val IMAGE_MODE_ORIGINAL = "original"
2023-07-08 02:17:19 -06:00
fun userProfileImage(userId: Int) = "${BASE_URL}images/profile_image/of_user/$userId?mode=small"
2023-08-20 16:11:07 -06:00
fun userProfileImageFullQuality(userId: Int) = "${BASE_URL}images/profile_image/of_user/$userId?mode=original"
2023-11-19 22:24:19 -06:00
fun imageUrl(imageId: String, mode: String? = IMAGE_MODE_ORIGINAL) = "${BASE_URL}images/image/${imageId}?mode=${mode}"
2023-02-11 23:41:23 -06:00
}