You can use "+data" in your robot name to tag extra bit of data to your robot. If you have a robot [email protected], you can have each menuHook to add [email protected] <robot%[email protected]> and [email protected] <robot%[email protected]> respectively. And inside your robot implementation you can check to see what the trailing + data is and react accordingly.
Austin On Tue, Oct 27, 2009 at 2:28 PM, Agustin Horischnik <[email protected]>wrote: > > I'm working on a robot that "maps" waves to database entities of two > different > kinds. For instance 'league' and 'team'. > > So, ideally I thought, my extension installer manifest.xml would > define two menuHook elements, both with > location=newwavemenu and different text attributes: "Create league" > and "Create team". So on the New Wave sub-menu you would have these > two choices. Each would create a new wave and add the robot as a > participant. The question is then, how could I instruct the robot > which kind of wave it is being added to. > > ¿Any ideas? > > Agustin. > > PS. I couldn't think of a better subject for this question, hope it > wasn't too confusing :) > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
