Clean ups

This commit is contained in:
Mario Danic 2018-10-17 21:27:53 +02:00
parent 5dd36a2fcc
commit 3f4d249838
3 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,7 @@ import lombok.Data;
@Parcel
public class CallWebSocketMessage {
@JsonField(name = "recipient")
ActorWebSocketMessage actorWebSocketMessage;
ActorWebSocketMessage recipientWebSocketMessage;
@JsonField(name = "sender")
ActorWebSocketMessage senderWebSocketMessage;

View file

@ -127,7 +127,6 @@ public class MagicWebSocketInstance extends WebSocketListener {
}
break;
case "event":
// Nothing for now
EventOverallWebSocketMessage eventOverallWebSocketMessage = LoganSquare.parse(text, EventOverallWebSocketMessage.class);
if (eventOverallWebSocketMessage.getEventMap() != null) {
String target = (String) eventOverallWebSocketMessage.getEventMap().get("target");

View file

@ -146,7 +146,7 @@ public class WebSocketConnectionHelper {
ActorWebSocketMessage actorWebSocketMessage = new ActorWebSocketMessage();
actorWebSocketMessage.setType("session");
actorWebSocketMessage.setSessionId(ncMessageWrapper.getSignalingMessage().getTo());
callWebSocketMessage.setActorWebSocketMessage(actorWebSocketMessage);
callWebSocketMessage.setRecipientWebSocketMessage(actorWebSocketMessage);
callWebSocketMessage.setNcSignalingMessage(ncMessageWrapper.getSignalingMessage());
callOverallWebSocketMessage.setCallWebSocketMessage(callWebSocketMessage);