Creating the MainInteractor

We want the user to be able to view other users (contacts) on the Messenger platform and view their active conversations on the main screen. In addition to this, we want a user to be able to log out of the platform directly from the main screen. As a result of these requirements, MainInteractor must be capable of loading contacts, loading conversations, and logging the user out of the platform. The following is the MainInteractor interface. Ensure to put it and all other Main_ files in the com.example.messenger.ui.main package:

package com.example.messenger.ui.mainimport com.example.messenger.data.vo.ConversationListVOimport com.example.messenger.data.vo.UserListVOinterface MainInteractor {  interface OnConversationsLoadFinishedListener ...

Get Kotlin Programming By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.