Tricky - Implementing Halloween Google Wave Robot and Gadget Sample Using .Net

by Viper 3. November 2009 16:58

Download Sample Project

After doing some plain text Google wave robots implementations, it is time for some fun robot that has some graphical implementation to it. This post is about port of tricky python sample published by Google in their Google wave development resources. This robot uses Google wave gadget as well to display some images. So implementation of this robot will help you understand how Google wave gadgets get included in the wave and how you can add them from robot itself. I am not going to discuss implementation of gadget here. I will do it in my future post.

In one of my earlier posts Developing Google Wave Robots Using .Net i discussed fundamental steps in creating and deploying your Google wave robot. So I will refer you to reading that post if you have not done it already. So following those steps i created my new robot named byteblocks-tricky.

How to use and try it

  • Add byteblocks-tricky@appsot.com as participant in your contacts
  • Start a new wave and add byteblocks-tricky@appspot.com as one of the participants in the wave. As soon as you add it as participant, you will notice that title of your wave has changed and a graphical widget gets added to the document.
  • Start a new message and type trick or treat. It will randomly give your trick or treat and display an image for the item.

Implementation

This robot handles WAVELET_SELF_ADDED and BLIP_SUBMITTED. In WAVELET_SELF_ADDED handler, robot inserts a gadget into the wave. In BLIP_SUBMITTED the robot looks for text trick or treat in document. If it finds it, it randomly decided if you are going to get tricked or get a treat. Then it searches Google images for appropriate image for that item and then inserts that image into the document.

Have fun with trick or treat.

Give your advice to big bosses and make money

Views: 1371

Tags:

Google Wave

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.1.7
Theme by Naveen Kohli

By Categories