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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.