mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Fixed nullability
This commit is contained in:
parent
4ac81e1b64
commit
f1cfdca2bf
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class OkHttpJsonApiClient @Inject constructor(
|
|||
private val gson: Gson
|
||||
) {
|
||||
fun getLeaderboard(
|
||||
userName: String, duration: String?,
|
||||
userName: String?, duration: String?,
|
||||
category: String?, limit: String?, offset: String?
|
||||
): Observable<LeaderboardResponse> {
|
||||
val fetchLeaderboardUrlTemplate =
|
||||
|
|
@ -80,7 +80,7 @@ class OkHttpJsonApiClient @Inject constructor(
|
|||
})
|
||||
}
|
||||
|
||||
fun setAvatar(username: String, avatar: String?): Single<UpdateAvatarResponse?> {
|
||||
fun setAvatar(username: String?, avatar: String?): Single<UpdateAvatarResponse?> {
|
||||
val urlTemplate = wikiMediaToolforgeUrl
|
||||
.toString() + LeaderboardConstants.UPDATE_AVATAR_END_POINT
|
||||
return Single.fromCallable<UpdateAvatarResponse?>({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue