use of cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent in project android-chat by wildfirechat.
the class BaseConferenceFragment method onReceiveMessage.
@Override
public void onReceiveMessage(List<Message> messages, boolean hasMore) {
if (AVEngineKit.Instance().getCurrentSession() != null && AVEngineKit.Instance().getCurrentSession().isConference()) {
for (Message msg : messages) {
if (msg.content instanceof ConferenceChangeModeContent) {
ConferenceChangeModeContent content = (ConferenceChangeModeContent) msg.content;
onChangeModeRequest(content.getCallId(), content.isAudience());
}
}
}
}
use of cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent in project android-chat by wildfirechat.
the class ConferenceParticipantListFragment method requestChangeMode.
private void requestChangeMode(String conferenceId, String userId, boolean audience) {
ConferenceChangeModeContent content = new ConferenceChangeModeContent(conferenceId, audience);
Conversation conversation = new Conversation(Conversation.ConversationType.Single, userId);
ChatManager.Instance().sendMessage(conversation, content, null, 0, null);
}
Aggregations