public ActionResult Postagem() { Integracao integracao = new Integracao(); //TwitterService service = new TwitterService("Sergiohff", "xsxkm7xs"); //IEnumerable<TwitterStatus> tweets = service.ListTweetsOnPublicTimeline(); //OAuthRequestToken requestToken = service.GetRequestToken(); //Uri uri = service.GetAuthorizationUri(requestToken); //Process.Start(uri.ToString()); //string verifier = "123456"; //OAuthAccessToken access = service.GetAccessToken(requestToken, verifier); //service.AuthenticateWith(access.Token, access.TokenSecret); //IEnumerable<TwitterStatus> mentions = service.ListTweetsMentioningMe(); //StringBuilder postagens = new StringBuilder(); //foreach (var tweet in tweets) //{ // postagens.AppendLine(tweet.User.ScreenName + " says " + tweet.Text); // tweet.User.ProfileImageUrl = ""; //} return View(); }
public ActionResult Ruby(string button, Integracao integracao) { double resultado = 0; if (button == "Calcular") { resultado = Calculo.Velocidade(double.Parse(integracao.Distancia), double.Parse(integracao.Tempo)); ViewBag.retorno = resultado.ToString() + "M/s"; } return View(); }