Examples of FetchedProfileProtoImpl


Examples of org.waveprotocol.box.profile.proto.ProfileResponseProtoImpl.FetchedProfileProtoImpl

  @Override
  public void copyFrom(ProfileResponse message) {
    clearProfiles();
    for (FetchedProfile field : message.getProfiles()) {
      addProfiles(new FetchedProfileProtoImpl(field));
    }
  }
View Full Code Here

Examples of org.waveprotocol.box.profile.proto.ProfileResponseProtoImpl.FetchedProfileProtoImpl

  @Override
  public List<FetchedProfileProtoImpl> getProfiles() {
    switchToProto();
    List<FetchedProfileProtoImpl> list = new ArrayList<FetchedProfileProtoImpl>();
    for (int i = 0; i < getProfilesSize(); i++) {
      FetchedProfileProtoImpl message = new FetchedProfileProtoImpl(proto.getProfiles(i));
      list.add(message);
    }
    return list;
  }
View Full Code Here

Examples of org.waveprotocol.box.profile.proto.ProfileResponseProtoImpl.FetchedProfileProtoImpl

  }

  @Override
  public FetchedProfileProtoImpl getProfiles(int n) {
    switchToProto();
    return new FetchedProfileProtoImpl(proto.getProfiles(n));
  }
View Full Code Here

Examples of org.waveprotocol.box.profile.proto.ProfileResponseProtoImpl.FetchedProfileProtoImpl

  /** Get or create a FetchedProfileProtoImpl from a FetchedProfile. */
  private FetchedProfileProtoImpl getOrCreateFetchedProfileProtoImpl(FetchedProfile message) {
    if (message instanceof FetchedProfileProtoImpl) {
      return (FetchedProfileProtoImpl) message;
    } else {
      FetchedProfileProtoImpl messageImpl = new FetchedProfileProtoImpl();
      messageImpl.copyFrom(message);
      return messageImpl;
    }
  }
View Full Code Here

Examples of org.waveprotocol.box.profile.proto.ProfileResponseProtoImpl.FetchedProfileProtoImpl

    if (jsonObject.has("1")) {
      JsonElement elem = jsonObject.get("1");
      {
        JsonArray array = elem.getAsJsonArray();
        for (int i = 0; i < array.size(); i++) {
          FetchedProfileProtoImpl payload = new FetchedProfileProtoImpl();
          GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
          addProfiles(payload);
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.