#using <mscorlib.dll>

using namespace System;
using namespace IVRForBeginners;

namespace HelloWorld_MCPP
{
 public __gc class HelloWorld : public NetClientCall
 {
  public:

  void Answer()
  {
   Synthesizer __gc *syn;

   playMessage(S"helloworld");
   waitIfPlaying();

   syn = getSynthesizer();

   syn->speak(S"Please press a key on your telephone's keypad.");
   inputWait(1, '#', 10000);

   syn->speak(S"You pressed ...");

   if ( inputAvailable() > 0 )
    syn->speak( getChar().ToString() );
  
   else
    syn->speak(S"nothing");

   syn->speak(S"That was easy, wasn't it?");
   syn->wait();  
  }

 };

}