Диалог изменения имени

This commit is contained in:
Пытков Роман
2025-01-28 20:53:14 +03:00
parent e1e7b48989
commit b375189e55
15 changed files with 239 additions and 69 deletions

View File

@@ -0,0 +1,12 @@
package com.github.nullptroma.wallenc.domain.usecases
import com.github.nullptroma.wallenc.domain.interfaces.IStorage
import com.github.nullptroma.wallenc.domain.interfaces.IStorageInfo
class RenameStorageUseCase {
suspend fun rename(storage: IStorageInfo, newName: String) {
when (storage) {
is IStorage -> storage.rename(newName)
}
}
}