In my last post Goole Wave Robot Sample, I walked through basic building blocks of development of a Google Wave robot using .Net. I think its time now that we see how this cool framework can be put to some useful lifting for us. In this post I will discuss conversion of Google provided java sample Stocky. This robot parses stock ticker provided in your wave or blip and then it contacts another third party app engine application to get latest stock price corresponding to that ticker. Following image shows how the output of Stocky will look like. This is from .Net port of the sample. I called my sample byteblocks-stocks. So in case you want to give it a spin, add email@example.com to your contacts.
I discussed some important events and life cycle of wave in my post Life cycle and events in Google Wave Robots. This prototype robot handles two events only (for now). As you develop more and more Google wave robots, you will realize that 80% of the tasks can be accomplished by handling the events I discussed in my earlier posts. Following is the list of events handled by byteblocks-stocks.
This is mostly port of java sample to .Net. For now I have repalced java PersistenceManager with ASP.Net cache to save previous tickers mentioned in blips. Other than this changes, the code is very straight forward. You can download the project and play with it to figure out insides of Google wave robot development.
Here are steps you will follow to see how this robot works
If you have any questions, feel free to drop me a line.