diff options
Diffstat (limited to 'android/lib/shared/src')
| -rw-r--r-- | android/lib/shared/src/main/kotlin/net/mullvad/mullvadvpn/lib/shared/DeviceRepository.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/lib/shared/src/main/kotlin/net/mullvad/mullvadvpn/lib/shared/DeviceRepository.kt b/android/lib/shared/src/main/kotlin/net/mullvad/mullvadvpn/lib/shared/DeviceRepository.kt index f518dc02d1..1c971e8069 100644 --- a/android/lib/shared/src/main/kotlin/net/mullvad/mullvadvpn/lib/shared/DeviceRepository.kt +++ b/android/lib/shared/src/main/kotlin/net/mullvad/mullvadvpn/lib/shared/DeviceRepository.kt @@ -1,5 +1,6 @@ package net.mullvad.mullvadvpn.lib.shared +import android.util.Log import arrow.core.Either import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.CoroutineScope @@ -33,4 +34,9 @@ class DeviceRepository( suspend fun deviceList(accountNumber: AccountNumber): Either<GetDeviceListError, List<Device>> = managementService.getDeviceList(accountNumber) + + suspend fun updateDevice() { + Log.d("mullvad", "Update device") + managementService.updateDevice() + } } |
