|
@@ -15,6 +15,14 @@ public class OtherUtil {
|
|
return tcpModel;
|
|
return tcpModel;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static TcpModel RoomSOSCall(Integer fromId){
|
|
|
|
+ TcpModel tcpModel = new TcpModel();
|
|
|
|
+ tcpModel.setType(TcpType.SOS);
|
|
|
|
+ tcpModel.setAction(TcpAction.SOSAction.ROOM_CALL);
|
|
|
|
+ tcpModel.setFromId(fromId);
|
|
|
|
+ return tcpModel;
|
|
|
|
+ }
|
|
|
|
+
|
|
public static TcpModel SOSCancel(Integer fromId, Integer toId){
|
|
public static TcpModel SOSCancel(Integer fromId, Integer toId){
|
|
TcpModel tcpModel = new TcpModel();
|
|
TcpModel tcpModel = new TcpModel();
|
|
tcpModel.setType(TcpType.SOS);
|
|
tcpModel.setType(TcpType.SOS);
|
|
@@ -38,6 +46,11 @@ public class OtherUtil {
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void sendRoomSosCall(Integer fromId) {
|
|
|
|
+ TcpModel tcpModel = OtherUtil.RoomSOSCall(fromId);
|
|
|
|
+ TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
|
|
+ }
|
|
|
|
+
|
|
public static void cancelSosCall(Integer fromId, Integer toId) {
|
|
public static void cancelSosCall(Integer fromId, Integer toId) {
|
|
TcpModel tcpModel = OtherUtil.SOSCancel(fromId, toId);
|
|
TcpModel tcpModel = OtherUtil.SOSCancel(fromId, toId);
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|