package com.wdkl.skywebrtc.inter;

import java.util.List;

/**
 * Created by dds on 2019/8/21.
 * android_shuai@163.com
 */
public interface ISkyEvent {

    // 创建房间
    void createRoom(String room, int roomSize);

    // 发送单人邀请
    void sendInvite(String room, List<String> userIds, boolean audioOnly);

    void sendRefuse(String room, String inviteId, int refuseType);

    void sendTransAudio(String toId);

    void sendDisConnect(String room, String toId, boolean isCrashed);

    void sendCancel(String mRoomId, List<String> toId);

    void sendJoin(String room);

    void sendRingBack(String targetId, String room);

    void sendLeave(String room, String userId);

    // sendOffer
    void sendOffer(String userId, String sdp);

    // sendAnswer
    void sendAnswer(String userId, String sdp);

    // sendIceCandidate
    void sendIceCandidate(String userId, String id, int label, String candidate);

    void onRemoteRing();

    void shouldStartRing(boolean isComing);

    void shouldStopRing();


}
