Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun showUserOrders(username: String, password: String) {
- login(username, password) {
- user -> fetchUserOrders(user.userId) {
- orders -> showUserOrders(orders)
- }
- }
- }
- fun login(username: String, password: String, callback: (User) -> Unit)
- fun fetchUserOrders(userId: Long, callback: (List<Orders>) -> Unit)
Add Comment
Please, Sign In to add comment