Ejemplo n.º 1
0
 public void RefreshDealsForCurrentLocation()
 {
     if (deviceLocation != null)
     {
         var DSManager = new DealServerFacade();
         DSManager.DealsDownloadSuccess += DsManagerOnDealsDownloadSuccess;
         DSManager.DownloadDealsAsync(new DealServerQueryModel()
         {
             Count = 10,
             Latitude = deviceLocation.Latitude,
             Longitude = deviceLocation.Longitude,
             Refinement = new QueryRefineModel()
             {
                 Keyword = "",
                 Offset = 0,
                 Ranking = "",
                 Resultsperbiz = 1,
                 TimeOut = 10,
                 source = ""
             }
         });
     }
 }
Ejemplo n.º 2
0
 private void LocationManagerOnLocationLoadSuccess(object sender, LocationEventArgs locationEventArgs)
 {
     var DSManager = new DealServerFacade();
     deviceLocation = locationEventArgs.Location;
     DSManager.DealsDownloadSuccess += DsManagerOnDealsDownloadSuccess;
     DSManager.DownloadDealsAsync(new DealServerQueryModel()
     {
         Count = 10,
         Latitude = deviceLocation.Latitude,
         Longitude = deviceLocation.Longitude,
         Refinement = new QueryRefineModel()
         {
             Keyword = "",
             Offset = 0,
             Ranking = "",
             Resultsperbiz = 1,
             TimeOut = 10,
             source = ""
         }
     });
 }