Package com.kurento.kmf.content.jsonrpc.param

Examples of com.kurento.kmf.content.jsonrpc.param.JsonRpcConstraints


public class SimpleTest {

  @Test
  public void testRequests() {
    JsonRpcRequest reqSent = JsonRpcRequest.newStartRequest("fake sdp",
        new JsonRpcConstraints("sendonly", "sendonly"), 9);
    String json = GsonUtils.getGson().toJson(reqSent);
    JsonRpcRequest reqReceived = GsonUtils.getGson().fromJson(json,
        JsonRpcRequest.class);

    assertTrue(reqReceived.getMethod().equals("start"));
View Full Code Here

TOP

Related Classes of com.kurento.kmf.content.jsonrpc.param.JsonRpcConstraints

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.