This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SentimentalTweets.Modelos | |
{ | |
public class Tweet | |
{ | |
public string Mensaje { get; set; } | |
public string Idioma { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SentimentalTweets.Modelos | |
{ | |
public class TweetAnalytics : Tweet | |
{ | |
public double Sentimiento { get; set; } | |
public string PalabrasClave { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using SentimentalTweets.Modelos; | |
using SentimentalTweets.Helpers; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using Newtonsoft.Json.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SentimentalTweets.Modelos | |
{ | |
public class Document | |
{ | |
public string Id { get; set; } | |
public string Text { get; set; } | |
public string Language { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using Xamarin.Forms; | |
namespace SentimentalTweets.Helpers | |
{ | |
public class StringToColorConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace SentimentalTweets.Helpers | |
{ | |
public static class Constantes | |
{ | |
public static readonly string TwitterApiKey = ""; | |
public static readonly string TwitterApiSecret = ""; | |
public static readonly string TextAnalyticsApiKey = ""; | |
public static readonly string TextAnalyticsEndpoint = ""; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace HoraLocal.Helpers | |
{ | |
public static class Constantes | |
{ | |
public static readonly string TimeZoneApiKey = ""; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
namespace HoraLocal | |
{ | |
public partial class App : Application | |
{ | |
public App () | |
{ | |
InitializeComponent(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace HoraLocal.Modelos | |
{ | |
public class TimeZoneInfo | |
{ | |
public long dstOffset { get; set; } | |
public long rawOffset { get; set; } | |
public string status { get; set; } | |
public string timeZoneId { get; set; } | |
public string timeZoneName { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ejemplo adaptado de la documentación: https://jamesmontemagno.github.io/GeolocatorPlugin/CurrentLocation.html | |
using Plugin.Geolocator; | |
using Plugin.Geolocator.Abstractions; | |
using System; | |
using System.Threading.Tasks; | |
namespace HoraLocal.Servicios | |
{ | |
public static class ServicioGelocalizacion | |
{ |