public AdvertisementItemController(IPhotosService advertisementItemPhotosUploader, IAdvertisementItemService advertisementItemService, IIdentityService identityService, ILoggerFactory loggerFactory) { this.advertisementItemPhotosUploader = advertisementItemPhotosUploader; this.advertisementItemService = advertisementItemService; this.identityService = identityService; this.logger = loggerFactory.CreateLogger <AdvertisementItemController>(); }
public override StartCommandResult OnStartCommand(Intent intent, [GeneratedEnum] StartCommandFlags flags, int startId) { ServiceIsRunning = true; searchModelForNotifications = new AdvertisementsSearchModelForNotifications(); this.sharedPreferencesHelper = new SharedPreferencesHelper(Application.ApplicationContext); var bearerToken = (string)this.sharedPreferencesHelper.GetSharedPreference <string>(SharedPreferencesKeys.BEARER_TOKEN); this.advertisementItemService = new AdvertisementItemService(bearerToken); this.gpsLocationService = new GpsLocationService(Application.ApplicationContext, null); DoWork(); return(StartCommandResult.Sticky); }
protected override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); this.bitmapOperationService = new BitmapOperationService(); this.advertisementItemService = new AdvertisementItemService(bearerToken); this.gpsLocationService = new GpsLocationService(this, null); this.categoriesSelectingHelper = new CategoriesSelectingHelper(this, bearerToken); this.sizeSelectingHelper = new SizeSelectingHelper(this); this.categoryInfoModel = new CategoryInfoModel(); SetContentView(Resource.Layout.AddNewAdvertisementActivity); base.SetupToolbar(); SetupViews(); photosPaths = new List <string>(); tempPhotosPaths = new List <string>(); await GetExtrasIsExistAndFillForm(); }
protected override async void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); gpsLocationService = new GpsLocationService(this, null); this.advertisementItemService = new AdvertisementItemService(bearerToken); feedbackService = new FeedbackService(bearerToken); messagesService = new MessagesService(bearerToken); this.bitmapOperationService = new BitmapOperationService(); SetContentView(Resource.Layout.AdvertisementItemDetailsActivity); base.SetupToolbar(); SetupViews(); await GetAndShowAdvertisementDetails(); firstEntryOnUserAdvertisementsList = true; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); this.gpsLocationService = new GpsLocationService(this, null); this.advertisementItemService = new AdvertisementItemService(bearerToken); this.categoriesHelper = new CategoriesSelectingHelper(this, bearerToken); this.sizeSelectingHelper = new SizeSelectingHelper(this); SetRefreshAdvertisementAction(); SetContentView(Resource.Layout.MainActivity); SetupToolbar(); SetupDrawer(); drawerToggle.ToolbarNavigationClickListener = this; advertisementsPage = 0; SetSortingOptionsLayout(); SetupFab(); SetAdvertisementsListKind(); SetupViews(); SetupSortingViews(); RefreshAdvertisementList(true); }
public MainActivity() { this.advertisementItemService = new AdvertisementItemService(); }
public AdvertisementItemDetailsActivity() { this.advertisementItemService = new AdvertisementItemService(); this.bitmapOperationService = new BitmapOperationService(); messagesService = new MessagesService(); }
public AdvertisementController(AdvertisementCategoryService advertisementCategoryService, AdvertisementItemService advertisementItemService) { _advertisementCategoryService = advertisementCategoryService; _advertisementItemService = advertisementItemService; }
public AddNewAdvertisementActivity() { this.bitmapOperationService = new BitmapOperationService(); this.advertisementItemService = new AdvertisementItemService(); this.sharedPreferencesHelper = new SharedPreferencesHelper(this); }
public AdvertisementItemController(IAdvertisementItemPhotosService advertisementItemPhotosUploader, IAdvertisementItemService advertisementItemService, IIdentityService identityService) { this.advertisementItemPhotosUploader = advertisementItemPhotosUploader; this.advertisementItemService = advertisementItemService; this.identityService = identityService; }