private void SetCheckingNewAdvertisementsAction(Context context)
 {
     checkingNewAdvertsAction = async() =>
     {
         try
         {
             searchModelForNotifications   = new AdvertisementsSearchModelForNotifications();
             this.appsettings              = SharedPreferencesHelper.GetAppSettings(this.context);
             this.advertisementItemService = new AdvertisementItemService(bearerToken);
             this.gpsLocationService       = new GpsLocationService(context.ApplicationContext, null);
             var coordinates = await CheckNewAdvertisementsAroundUserCurrentLocation();
             await CheckNewAdvertisementsAroundUserHomeLocation(coordinates);
         }
         catch
         {
         }
         finally
         {
             checkingNewAdvertsFinished = true;
         }
     };
 }
 public AdvertisementController(AdvertisementCategoryService advertisementCategoryService, AdvertisementItemService advertisementItemService)
 {
     _advertisementCategoryService = advertisementCategoryService;
     _advertisementItemService     = advertisementItemService;
 }