You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
454 B
15 lines
454 B
package allin.data
|
|
|
|
import allin.dto.UserDTO
|
|
import allin.model.User
|
|
|
|
interface UserDataSource {
|
|
|
|
fun getUserByUsername(username: String): Pair<UserDTO?, String?>
|
|
fun addUser(user: User)
|
|
fun deleteUser(username: String): Boolean
|
|
fun addCoins(username: String, amount: Int)
|
|
fun removeCoins(username: String, amount: Int)
|
|
fun userExists(username: String, email: String): Boolean
|
|
fun canHaveDailyGift(username: String): Boolean
|
|
} |