@Test public void deserializeTest() throws IOException { String json = "[66, 788923562, 2103333224]"; UnregisterMessage unregisterMessage = WampMessage.deserialize(getJsonFactory(), json.getBytes(StandardCharsets.UTF_8)); assertThat(unregisterMessage.getCode()).isEqualTo(66); assertThat(unregisterMessage.getRequestId()).isEqualTo(788923562L); assertThat(unregisterMessage.getRegistrationId()).isEqualTo(2103333224L); }
public static UnregisterMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new UnregisterMessage(request, registration); }
UnregisterMessage extends WampMessage { public static UnregisterMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new UnregisterMessage(request, registration); } }
UnregisterMessage extends WampMessage { public static UnregisterMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new UnregisterMessage(request, registration); } UnregisterMessage(long requestId, long registrationId); }
UnregisterMessage extends WampMessage { public static UnregisterMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new UnregisterMessage(request, registration); } UnregisterMessage(long requestId, long registrationId); static UnregisterMessage deserialize(JsonParser jp); @Override void serialize(JsonGenerator generator); long getRequestId(); long getRegistrationId(); @Override String toString(); }
UnregisterMessage extends WampMessage { public static UnregisterMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new UnregisterMessage(request, registration); } UnregisterMessage(long requestId, long registrationId); static UnregisterMessage deserialize(JsonParser jp); @Override void serialize(JsonGenerator generator); long getRequestId(); long getRegistrationId(); @Override String toString();  }