Created
April 11, 2018 04:15
-
-
Save markchristopherng/a87ff597097f0209a6e0a2e61e58fc1b to your computer and use it in GitHub Desktop.
BranchLocationManager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package au.com.auspost.android.feature.postcode.service | |
import au.com.auspost.android.AuspostDatabase | |
import javax.inject.Inject | |
import javax.inject.Singleton | |
@Singleton | |
class BranchLocationManager { | |
@Inject | |
lateinit var db: AuspostDatabase | |
fun getAll() = db.branchLocationDao().getAll() | |
fun getByKeyword(keyword : String) = db.branchLocationDao().getByKeyword(keyword + "%") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment