Package com.google.wave.api

Examples of com.google.wave.api.BlipThread


    when(blip.getBlipId()).thenReturn("blip123");
    Wavelet wavelet = mock(Wavelet.class);
    when(wavelet.getBlip("blip123")).thenReturn(blip);
    Map<String, Blip> blips = Maps.newHashMap();
    blips.put("blip123", blip);
    when(wavelet.getThread(anyString())).thenReturn(new BlipThread("rootThread", -1,
        Lists.<String>newArrayList("blip123"), blips));
   
    EventMessageBundle bundle = new EventMessageBundle("http://10.1.1.1",
        "http://wave-active-api.example.com");
View Full Code Here


        eventMessageBundle);
    List<String> blipIds = Lists.newLinkedList();
    for (ConversationBlip conversationBlip : conversation.getRootThread().getBlips()) {
      blipIds.add(conversationBlip.getId());
    }
    waveletData.setRootThread(new BlipThread("", -1 , blipIds, null));
    return waveletData;
  }
View Full Code Here

    // Get the ids of the contained blips.
    List<String> blipIds = Lists.newLinkedList();
    for (ConversationBlip blip : thread.getBlips()) {
      blipIds.add(blip.getId());
    }
    eventMessageBundle.addThread(threadId, new BlipThread(thread.getId(), location, blipIds, null));
  }
View Full Code Here

   * An instance creator that creates an empty {@link BlipThread}.
   */
  private static class ThreadInstanceCreator implements InstanceCreator<BlipThread> {
    @Override
    public BlipThread createInstance(Type type) {
      return new BlipThread(null, -1, null, null);
    }
View Full Code Here

    // Deserialize threads.
    Map<String, BlipThread> tempThreads = context.deserialize(jsonObj.get(THREADS_TAG),
        GsonFactory.THREAD_MAP_TYPE);
    for (Entry<String, BlipThread> entry : tempThreads.entrySet()) {
      BlipThread thread = entry.getValue();
      threads.put(entry.getKey(), new BlipThread(thread.getId(), thread.getLocation(),
          thread.getBlipIds(), blips));
    }

    // Deserialize blips.
    Map<String, BlipData> blipDatas = context.deserialize(jsonObj.get(BLIPS_TAG),
        GsonFactory.BLIP_MAP_TYPE);
View Full Code Here

   * An instance creator that creates an empty {@link BlipThread}.
   */
  private static class ThreadInstanceCreator implements InstanceCreator<BlipThread> {
    @Override
    public BlipThread createInstance(Type type) {
      return new BlipThread(null, -1, null, null);
    }
View Full Code Here

    // Deserialize threads.
    Map<String, BlipThread> tempThreads = context.deserialize(jsonObj.get(THREADS_TAG),
        GsonFactory.THREAD_MAP_TYPE);
    for (Entry<String, BlipThread> entry : tempThreads.entrySet()) {
      BlipThread thread = entry.getValue();
      threads.put(entry.getKey(), new BlipThread(thread.getId(), thread.getLocation(),
          thread.getBlipIds(), blips));
    }

    // Deserialize blips.
    Map<String, BlipData> blipDatas = context.deserialize(jsonObj.get(BLIPS_TAG),
        GsonFactory.BLIP_MAP_TYPE);
View Full Code Here

        eventMessageBundle);
    List<String> blipIds = Lists.newLinkedList();
    for (ConversationBlip conversationBlip : conversation.getRootThread().getBlips()) {
      blipIds.add(conversationBlip.getId());
    }
    waveletData.setRootThread(new BlipThread("", -1 , blipIds, null));
    return waveletData;
  }
View Full Code Here

    // Get the ids of the contained blips.
    List<String> blipIds = Lists.newLinkedList();
    for (ConversationBlip blip : thread.getBlips()) {
      blipIds.add(blip.getId());
    }
    eventMessageBundle.addThread(threadId, new BlipThread(thread.getId(), location, blipIds, null));
  }
View Full Code Here

   * An instance creator that creates an empty {@link BlipThread}.
   */
  private static class ThreadInstanceCreator implements InstanceCreator<BlipThread> {
    @Override
    public BlipThread createInstance(Type type) {
      return new BlipThread(null, -1, null, null);
    }
View Full Code Here

TOP

Related Classes of com.google.wave.api.BlipThread

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.