123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- package com.cooleshow.teacher.contract;
- import android.view.View;
- import com.cooleshow.base.presenter.view.BaseView;
- import com.cooleshow.chatmodule.bean.ContactListBean;
- import com.cooleshow.teacher.bean.LiveRoomInfoBean;
- import com.daya.tclive.bean.FriendInfoBean;
- import com.rong.io.live.message.RCChatJoinRoomMessage;
- import com.rong.io.live.message.RCOnSnappingUpMessage;
- import com.rong.io.live.message.RCUserAddLikeMessage;
- import com.rong.io.live.message.RCUserSeatApplyMessage;
- import java.util.List;
- import cn.rongcloud.rtc.api.RCRTCRemoteUser;
- import cn.rongcloud.rtc.api.stream.RCRTCVideoView;
- import cn.rongcloud.rtc.base.RCRTCLiveRole;
- import io.rong.imlib.model.Message;
- import io.rong.imlib.model.MessageContent;
- public interface LiveRoomContract {
- interface LiveRoomView extends BaseView {
-
- void getRoomInfoSuccess(LiveRoomInfoBean roomInfoBean);
-
- void getRoomInfoError(Throwable throwable);
-
- void showFinishView();
-
- void addMessageList(List<MessageContent> messageContents, boolean isReset);
-
- void addMessageContent(Message message, boolean isReset);
-
- void setRoomData(LiveRoomInfoBean roomInfoBean);
-
- void onPublishSuccess();
- View getContentView();
- void addVideoPreview(RCRTCVideoView videoView);
- void openCameraSuccess(Boolean data);
- void openCameraError(String errorMsg);
-
- void syncMemberCount(String count);
-
- void receiveJoinMessage(RCChatJoinRoomMessage joinRoomMessage);
-
- void receiveSnapUpMessage(RCOnSnappingUpMessage snappingUpMessage);
- void liveRoomOffline();
- void onAddLikeMessage(RCUserAddLikeMessage addLikeMessage);
- void onUserJoinRoom(RCRTCRemoteUser rcrtcRemoteUser);
- void onUserLeftRoomMic(RCRTCRemoteUser rcrtcRemoteUser);
- void onUserOfflineRoomMic(RCRTCRemoteUser rcrtcRemoteUser);
- void onSwitchRole(String userId, RCRTCLiveRole role);
-
- void onSeatApplyMessage(RCUserSeatApplyMessage seatApplyMessage);
-
- void onRemoteUserPublishResource(String remoteUserId);
-
- void getFriendInfoSuccess(FriendInfoBean data);
-
- void onUserLeaveRoom(String targetUserId);
- }
- interface Presenter {
- void handleAction(int action, Object... params);
- void notifyJoinRoomAction(String roomId, String userId);
- void notifyLeaveRoomAction();
- }
- }
|