Skip to content

Commit

Permalink
feat : implement recent keyword repository impl
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonsuKang committed Dec 1, 2024
1 parent 57f38cc commit a1e40a5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package repositoryimpl

import com.knu.datastore.preferences.SharedPreferencesManager
import com.knu.search.repository.RecentKeyWordRepository
import javax.inject.Inject
import javax.inject.Singleton

@Singleton
class RecentKeyWordRepositoryImpl @Inject constructor(
private val preferencesManager: SharedPreferencesManager,
) : RecentKeyWordRepository {

override fun putStringList(key: String, value: List<String>) {
preferencesManager.putStringList(key, value)
}

override fun getStringList(key: String): List<String> {
return preferencesManager.getStringList(key)
}
}

0 comments on commit a1e40a5

Please sign in to comment.