Guest User

Untitled

a guest
Oct 9th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. fun showUserOrders(username: String, password: String) {
  2. login(username, password) {
  3. user -> fetchUserOrders(user.userId) {
  4. orders -> showUserOrders(orders)
  5. }
  6. }
  7. }
  8.  
  9. fun login(username: String, password: String, callback: (User) -> Unit)
  10.  
  11. fun fetchUserOrders(userId: Long, callback: (List<Orders>) -> Unit)
Add Comment
Please, Sign In to add comment