Package com.google.walkaround.proto.gson

Examples of com.google.walkaround.proto.gson.ServerMutateResponseGsonImpl


    if (result.isRejected()) {
      throw new BadRequestException(result.exception);
    }

    ServerMutateResponse response = new ServerMutateResponseGsonImpl();
    response.setResultingVersion(result.getResultingRevision());
    response.setBroadcastData(jsonBroadcastData(objectId, result.getBroadcastData()));
    return response;
  }
View Full Code Here


    if (!response.startsWith("OK")) {
      throw new RuntimeException("Backend gave junk " + response);
    }

    try {
      return GsonProto.fromGson(new ServerMutateResponseGsonImpl(),
          response.substring(2));
    } catch (MessageException e) {
      throw new RuntimeException("Backend gave incompatible JSON: " + response, e);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.gson.ServerMutateResponseGsonImpl

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.