예제 #1
0
        public CuandoPasa()
        {
            InitializeComponent();

            UserMobileLocation taskCuandoPasa = ApiRest.GetAsyncFormData <UserMobileLocation>((string)App.Current.Resources["URLUserLocation"] + App.PlayerId).Result;

            var url = new UrlWebViewSource
            {
                Url = (string)Application.Current.Resources["URLCuandoPasa"] + "?lat=" + taskCuandoPasa.Lat + "&long=" + taskCuandoPasa.Lon + "&fa=" + GetActualDateJsonFormated()
            };

            wAreas.Source = url;
        }
예제 #2
0
        public HttpResponseMessage GetUserLocation(string playerId)
        {
            UserMobileLocation userLocation = userSvc.GetLocationMobile(playerId);

            return(Request.CreateResponse(HttpStatusCode.OK, userLocation));
        }