Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val users: HashMap<Int, User> = HashMap()
- val groups: HashMap<Int, Group> = HashMap()
- val usersIds = ArrayList<Int>()
- val groupsIds = ArrayList<Int>()
- if (bar()) {
- asyncCallWithListener(
- usersIdsToLoad,
- groupsIdsToLoad,
- listener = object : ResponseListener {
- override fun success(result: ResponseWithUsersAndGroups) {
- if (result.users.isNotEmpty() || result.groups.isNotEmpty()) {
- mIoScope.launch {
- bazz()
- Manager.notify(users, groups, someConst)
- }
- } else {
- Manager.notify(users, groups, someConst)
- }
- }
- override fun fail(error: Exception) {
- Manager.notify(users, groups, someConst)
- }
- }
- )
- } else {
- Manager.notify(users, groups, someConst)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement