I also needed that... Ok, now we have to wait for new APIs On 31 дек 2009, 01:30, "Austin (Google)" <[email protected]> wrote: > This is not possible with the API's current representation > ofparentand children blips. In order for you to iterate over the > blips in > the "conversation" order, the API needs to expose the conversation > model. > You can read more about the model in the Wave Protocol > specification:http://www.waveprotocol.org/draft-protocol-specs/wave-conversation-model > (particularly > "Conversation Manifest Document") > We do plan to expose the conversation model in the API at a later > date, so > please stay tuned to the blog and forum for updates. > Austin > > On Dec 21, 11:48 pm, Kartik Bansal <[email protected]> wrote: > > > Hey guys, > > > need help with reading child blips. Consider following scenarios: > > > 1. I have three blips in following order > > RootBlip(A) > > Blip(B) > > Blip(C) > > > I use following loop to read all the content of the wave: > > > StringBuilder s = new StringBuilder(""); > > if(root != null){ > > > > if(!root.getDocument().getText().contains("http://173.45.238.233/files/" + > > waveId + "/" + waveId + ".pdf")){ > > s.append(root.getChild(i).getDocument().getText() + > > " "); > > } > > } > > for(i=0;i<len;i++){ > > if(root.getChild(i) != null){ > > > if(!root.getChild(i).getDocument().getText().contains("http://173.45.238.233/files/" > > + waveId + "/" + waveId + ".pdf")){ > > > s.append(root.getChild(i).getDocument().getText() + " "); > > } > > } > > if(root.getChild(i).hasChildren()){ > > Logger.getAnonymousLogger().severe("Child " + i + > > "has childern"); > > } > > else{ > > Logger.getAnonymousLogger().severe("Child " + i + > > "has no childern"); > > } > > } > > > When i run this loop, i get: ABC > > > 2. Now a newblipis added as a reply to the secondblip > > RootBlip(A) > > Blip(B) > > Blip(D) > > Blip(C) > > > Now the same loop as above reads the content of the newly addedblipas > > last. So i get ABCD > > > But i want to read it as ABDC. How can I achieve this? > > > Thank you
-- You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
