CreateChannelView.kt 1.28 KB
Newer Older
1 2 3 4
package chat.rocket.android.createchannel.presentation

import chat.rocket.android.core.behaviours.LoadingView
import chat.rocket.android.core.behaviours.MessageView
5
import chat.rocket.android.members.uimodel.MemberUiModel
6 7 8 9 10 11 12 13

interface CreateChannelView : LoadingView, MessageView {

    /**
     * Shows the server's users suggestion (on the basis of the user typing - the query).
     *
     * @param dataSet The list of server's users to show.
     */
14
    fun showUserSuggestion(dataSet: List<MemberUiModel>)
15

16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    /**
     * Shows no server's users suggestion.
     */
    fun showNoUserSuggestion()

    /**
     * Shows the SuggestionView in progress.
     */
    fun showSuggestionViewInProgress()

    /**
     * Hides the progress shown in the SuggestionView.
     */
    fun hideSuggestionViewInProgress()

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
    /**
     * Shows the navigation drawer with the chat item checked before showing the chat list.
     * This function is invoked after successfully created the channel.
     */
    fun prepareToShowChatList()

    /**
     * Shows a message that a channel was successfully created.
     */
    fun showChannelCreatedSuccessfullyMessage()

    /**
     * Enables the user input.
     */
    fun enableUserInput()

    /**
     * Disables the user input.
     */
    fun disableUserInput()
}