# BaseBusinessProcessor

public abstract class BaseBusinessProcessor

处理单聊、群聊、讨论组逻辑的公共类

## Constructors

BaseBusinessProcessor
Link copied to clipboard
public void BaseBusinessProcessor()

## Functions

getHistoryMessageCount
Link copied to clipboard
public int getHistoryMessageCount()
init
Link copied to clipboard
public void init(MessageViewModel messageViewModel, Bundle bundle)
isHistoryState
Link copied to clipboard
public boolean isHistoryState(MessageViewModel viewModel)
isNormalState
Link copied to clipboard
public boolean isNormalState(MessageViewModel viewModel)
newMentionMessageBarClick
Link copied to clipboard
public void newMentionMessageBarClick(MessageViewModel viewModel)
newMessageBarClick
Link copied to clipboard
public void newMessageBarClick(MessageViewModel viewModel)
onBackPressed
Link copied to clipboard
public boolean onBackPressed(MessageViewModel viewModel)
onClearMessage
Link copied to clipboard
public void onClearMessage(MessageViewModel viewModel)
onConnectStatusChange
Link copied to clipboard
public void onConnectStatusChange(MessageViewModel viewModel, ConnectionStatus status)
检查已读状态，如果 sp 有内容，则发送
onDestroy
Link copied to clipboard
public void onDestroy(MessageViewModel viewModel)
onExistUnreadMessage
Link copied to clipboard
public void onExistUnreadMessage(MessageViewModel viewModel, Conversation conversation, int unreadMessageCount)
onLoadMessage
Link copied to clipboard
public void onLoadMessage(MessageViewModel viewModel, List<Message> messages)
onLoadMore
Link copied to clipboard
public void onLoadMore(MessageViewModel viewModel)
onMessageItemClick
Link copied to clipboard
public void onMessageItemClick(UiMessage uiMessage)
onMessageItemLongClick
Link copied to clipboard
public boolean onMessageItemLongClick(UiMessage uiMessage)
onMessageReceiptRequest
Link copied to clipboard
public void onMessageReceiptRequest(MessageViewModel viewModel, ConversationType conversationType, String targetId, String messageUId)
onReceived
Link copied to clipboard
public boolean onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
onReceivedCmd
Link copied to clipboard
public boolean onReceivedCmd(MessageViewModel messageViewModel, Message message)
onRefresh
Link copied to clipboard
public void onRefresh(MessageViewModel viewModel)
onResume
Link copied to clipboard
public void onResume(MessageViewModel viewModel)
onScrollToBottom
Link copied to clipboard
public void onScrollToBottom(MessageViewModel viewModel)
onUserPortraitClick
Link copied to clipboard
public void onUserPortraitClick(Context context, ConversationType conversationType, UserInfo userInfo, String targetId)
onUserPortraitLongClick
Link copied to clipboard
public boolean onUserPortraitLongClick(Context context, ConversationType conversationType, UserInfo userInfo, String targetId)
unreadBarClick
Link copied to clipboard
public void unreadBarClick(MessageViewModel viewModel)