public TwittergotchiController()
 {
     twitter = new Twitter();
     internalTamagotchi = new TamagotchiInternal();
     tamagotchi = new Tamagotchi();
     checkTwitterTimer = new Timer();
      	checkTwitterTimer.Elapsed += new ElapsedEventHandler(checkTwitter);
      	checkTwitterTimer.Interval=5000;
      	checkTwitterTimer.Enabled=true;
     string[] request = twitter.checkForTwittergotchiRequests("myGotchi", "myGotchi");
     doHandleRequest(request[0], request[1]);
 }
 private void publishCurrentState(TamagotchiInternal tamagotchi)
 {
     String statusMessage = "Mockup";
     //statusMessage = tamagotchi.getCurrentStatus();
     twitter.PublishOnTwitter(statusMessage);
 }
Пример #3
0
 // Constructor
 public Tamagotchi()
 {
     intern = new TamagotchiInternal();
 }
 public void Init()
 {
     tamagotchiInternals = new TamagotchiInternal();
 }