Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.WalkaroundDocumentSnapshot


  /**
   * Serializes blip into Message.
   */
  private WalkaroundDocumentSnapshot toProtoBuf(BlipDataImpl blip) {
    WalkaroundDocumentSnapshot document = MessageFactoryHelper.createDocumentSnapshot();

    document.setDocumentId(blip.getId());
    document.setAuthor(blip.getAuthor().getAddress());
    document.setLastModifiedTime(blip.getLastModifiedTime());
    document.setLastModifiedVersion(blip.getLastModifiedVersion());
    document.addAllContributor(listOfParticipantAddresses(blip.getContributors()));

    ProtocolDocumentOperation documentOperation =
        OperationSerializer.createMutationOp(blip.getContent().asOperation());

    document.setContent(documentOperation);

    return document;
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.WalkaroundDocumentSnapshot

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.