|
@@ -36,13 +36,22 @@ public class OtherUtil {
|
|
|
return tcpModel;
|
|
|
}
|
|
|
|
|
|
- public static TcpModel SOSCancel(Integer fromId, Integer toId,Integer InteractionId){
|
|
|
+ public static TcpModel SOSButtonCancel(Integer fromId, Integer interactionId){
|
|
|
+ TcpModel tcpModel = new TcpModel(null);
|
|
|
+ tcpModel.setType(TcpType.SOS);
|
|
|
+ tcpModel.setAction(TcpAction.SOSAction.CANCEL);
|
|
|
+ tcpModel.setFromId(fromId);
|
|
|
+ tcpModel.setData(interactionId);
|
|
|
+ return tcpModel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static TcpModel SOSCancel(Integer fromId, Integer toId,Integer interactionId){
|
|
|
TcpModel tcpModel = new TcpModel(null);
|
|
|
tcpModel.setType(TcpType.SOS);
|
|
|
tcpModel.setAction(TcpAction.SOSAction.CANCEL);
|
|
|
tcpModel.setFromId(fromId);
|
|
|
tcpModel.setToId(toId);
|
|
|
- tcpModel.setData(InteractionId);
|
|
|
+ tcpModel.setData(interactionId);
|
|
|
return tcpModel;
|
|
|
}
|
|
|
|
|
@@ -156,6 +165,11 @@ public class OtherUtil {
|
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
|
}
|
|
|
|
|
|
+ public static void sendSosButtonCancel(Integer fromId, Integer interactionId) {
|
|
|
+ TcpModel tcpModel = OtherUtil.SOSButtonCancel(fromId, interactionId);
|
|
|
+ TcpClient.getInstance().sendMsg(tcpModel.toJson());
|
|
|
+ }
|
|
|
+
|
|
|
public static void cancelSosCall(Integer fromId, Integer toId, Integer interactionId) {
|
|
|
TcpModel tcpModel = OtherUtil.SOSCancel(fromId, toId, interactionId);
|
|
|
TcpClient.getInstance().sendMsg(tcpModel.toJson());
|