Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 59229aa

Browse files
committed
Remove avatar dimension from Service constructor
1 parent ac21650 commit 59229aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/users/services/UserService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ import com.owncloud.android.lib.resources.users.RemoteUserInfo
3333
interface UserService : Service {
3434
fun getUserInfo(): RemoteOperationResult<RemoteUserInfo>
3535
fun getUserQuota(): RemoteOperationResult<GetRemoteUserQuotaOperation.RemoteQuota>
36-
fun getUserAvatar(): RemoteOperationResult<RemoteAvatarData>
36+
fun getUserAvatar(avatarDimension: Int): RemoteOperationResult<RemoteAvatarData>
3737
}

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/users/services/implementation/OCUserService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ import com.owncloud.android.lib.resources.users.RemoteAvatarData
2828
import com.owncloud.android.lib.resources.users.RemoteUserInfo
2929
import com.owncloud.android.lib.resources.users.services.UserService
3030

31-
class OCUserService(override val client: OwnCloudClient, private val avatarDimension: Int) : UserService {
31+
class OCUserService(override val client: OwnCloudClient) : UserService {
3232
override fun getUserInfo(): RemoteOperationResult<RemoteUserInfo> =
3333
GetRemoteUserInfoOperation().execute(client)
3434

3535
override fun getUserQuota(): RemoteOperationResult<GetRemoteUserQuotaOperation.RemoteQuota> =
3636
GetRemoteUserQuotaOperation().execute(client)
3737

38-
override fun getUserAvatar(): RemoteOperationResult<RemoteAvatarData> =
38+
override fun getUserAvatar(avatarDimension: Int): RemoteOperationResult<RemoteAvatarData> =
3939
GetRemoteUserAvatarOperation(avatarDimension).execute(client)
4040

4141
}

0 commit comments

Comments
 (0)