public override void request()
 {
     if (isValidEmail(emailTxt.Text))
     {
         emailTxt.ResignFirstResponder();
         ServiceRequestStatus req = MyMoodService.Current.RegisterInterestInApp(emailTxt.Text);
         if (req.Success != true)
         {
             emailAlert = new UIAlertView("myMood", "Could not register your interest - please check that you are connected to the network", null, "OK", null);
             emailAlert.Show();
         }
         else
         {
             string msg = "Your interest has been registered - thank you!";
             emailAlert = new UIAlertView("myMood", msg, null, "OK", null);
             Close();
             emailAlert.Show();
         }
     }
     else
     {
         emailAlert = new UIAlertView("myMood", "Email address not recognised, please check it and try again", null, "OK", null);
         emailAlert.Show();
     }
 }
 public override void request()
 {
     if (isValidEmail(emailTxt.Text))
     {
         emailTxt.ResignFirstResponder();
         //ServiceRequestStatus req =  MyMoodService.Current.s  .RequestPersonalMoodReport(emailTxt.Text);
         //req.service
         ServiceRequestStatus req = MyMoodService.Current.RequestPersonalMoodReport(emailTxt.Text);
         if (req.Success != true)
         {
             emailAlert = new UIAlertView("myMood", "Could not send request - please check that you are connected to the network", null, "OK", null);
             emailAlert.Show();
         }
         else
         {
             string msg = string.Format("Your mood report has been sent to {0}", emailTxt.Text);
             emailAlert = new UIAlertView("myMood", msg, null, "OK", null);
             Close();
             emailAlert.Show();
         }
     }
     else
     {
         emailAlert = new UIAlertView("myMood", "Email address not recognised, please check it and try again", null, "OK", null);
         emailAlert.Show();
     }
 }
Beispiel #3
0
 private void request()
 {
     if (isValidEmail(emailTxt.Text))
     {
         emailTxt.ResignFirstResponder();
         //ServiceRequestStatus req =  MyMoodService.Current.s  .RequestPersonalMoodReport(emailTxt.Text);
         //req.service
         ServiceRequestStatus req = MyMoodService.Current.RequestPersonalMoodReport(emailTxt.Text);
         if (req.Success != true)
         {
             emailAlert = new UIAlertView("My Mood", "There was a problem connecting to the server, please try again.", null, "OK", null);
             emailAlert.Show();
         }
         else
         {
             string msg = string.Format("A report request will be sent to {0}", emailTxt.Text);
             emailAlert = new UIAlertView("My Mood", msg, null, "OK", null);
             dissmissOverlay();
             emailAlert.Show();
         }
     }
     else
     {
         emailAlert = new UIAlertView("My Mood", "There was a problem validating your email address, please check and try again.", null, "OK", null);
         emailAlert.Show();
     }
 }
Beispiel #4
0
 private void request()
 {
     if (isValidEmail(emailTxt.Text))
     {
         emailTxt.ResignFirstResponder();
         ServiceRequestStatus req = MyMoodService.Current.RegisterInterestInApp(emailTxt.Text);
         if (req.Success != true)
         {
             emailAlert = new UIAlertView("My Mood", "There was a problem connecting to the server, please try again.", null, "OK", null);
             emailAlert.Show();
         }
         else
         {
             string msg = "A myMood information request has been successfully registered";
             emailAlert = new UIAlertView("My Mood", msg, null, "OK", null);
             dissmissOverlay();
             emailAlert.Show();
         }
     }
     else
     {
         emailAlert = new UIAlertView("My Mood", "There was a problem validating your email address, please check and try again.", null, "OK", null);
         emailAlert.Show();
     }
 }
 public ServiceResponse(ServiceRequestStatus status, T result)
 {
     this.Result = result;
     this.Status = status;
 }