예제 #1
0
        public ExportImportController(ICatalogService catalogService,
                                      IPushNotificationManager pushNotificationManager,
                                      ICommerceService commerceService,
                                      IBlobStorageProvider blobStorageProvider,
                                      IBlobUrlResolver blobUrlResolver,
                                      ICsvCatalogExporter csvExporter,
                                      ICsvCatalogImporter csvImporter,
                                      ISecurityService securityService,
                                      IPermissionScopeService permissionScopeService,
                                      IUserNameResolver userNameResolver,
                                      ISettingsManager settingsManager)
        {
            _securityService        = securityService;
            _permissionScopeService = permissionScopeService;

            _catalogService      = catalogService;
            _notifier            = pushNotificationManager;
            _commerceService     = commerceService;
            _blobStorageProvider = blobStorageProvider;
            _userNameResolver    = userNameResolver;
            _settingsManager     = settingsManager;
            _blobUrlResolver     = blobUrlResolver;

            _csvExporter = csvExporter;
            _csvImporter = csvImporter;
        }
예제 #2
0
 public CommerceController(ICommerceService commerceService, ICustomerOrderService customerOrderService, IStoreService storeService, ISeoDuplicatesDetector seoDuplicateDetector)
 {
     _commerceService      = commerceService;
     _customerOrderService = customerOrderService;
     _storeService         = storeService;
     _seoDuplicateDetector = seoDuplicateDetector;
 }
 public CommerceController(ICommerceService commerceService, ICustomerOrderService customerOrderService, IStoreService storeService, ISeoDuplicatesDetector seoDuplicateDetector)
 {
     _commerceService = commerceService;
     _customerOrderService = customerOrderService;
     _storeService = storeService;
     _seoDuplicateDetector = seoDuplicateDetector;
 }
 protected MemberServiceBase(Func <IMemberRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService,
                             IEventPublisher eventPublisher)
 {
     RepositoryFactory      = repositoryFactory;
     DynamicPropertyService = dynamicPropertyService;
     EventPublisher         = eventPublisher;
     CommerceService        = commerceService;
 }
예제 #5
0
 public StoreServiceImpl(Func <IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IShippingService shippingService, IPaymentMethodsService paymentService)
 {
     _repositoryFactory = repositoryFactory;
     _commerceService   = commerceService;
     _settingManager    = settingManager;
     _shippingService   = shippingService;
     _paymentService    = paymentService;
 }
        public MonitoredItemsConfigViewModel(ICommerceService commerceService, ICommerceController controller)
        {
            this.commerceService = commerceService;
            this.controller      = controller;

            this.ItemsProvider = new ItemResultsProvider(this.commerceService);
            this.ItemToAdd     = new ItemPriceViewModel(new PriceWatch(), new Item(-1, null), this.controller, this.commerceService);
        }
예제 #7
0
		public StoreServiceImpl(Func<IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, IShippingService shippingService, IPaymentMethodsService paymentService)
		{
			_repositoryFactory = repositoryFactory;
			_commerceService = commerceService;
			_settingManager = settingManager;
			_shippingService = shippingService;
			_paymentService = paymentService;
		}
예제 #8
0
 public CatalogServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, ICacheManager <object> cacheManager,
                           AbstractValidator <IHasProperties> hasPropertyValidator)
 {
     _commerceService      = commerceService;
     _repositoryFactory    = catalogRepositoryFactory;
     _cacheManager         = cacheManager;
     _hasPropertyValidator = hasPropertyValidator;
 }
        public CatalogSearchServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, IItemService itemService,
                                        ICatalogService catalogService, ICategoryService categoryService, ICommerceService commerceService)
        {
            _catalogRepositoryFactory = catalogRepositoryFactory;
            _itemService = itemService;
            _catalogService = catalogService;
            _categoryService = categoryService;
			_commerceService = commerceService;
		}
예제 #10
0
 public CatalogSearchServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, IItemService itemService,
                                 ICatalogService catalogService, ICategoryService categoryService, ICommerceService commerceService)
 {
     _catalogRepositoryFactory = catalogRepositoryFactory;
     _itemService     = itemService;
     _catalogService  = catalogService;
     _categoryService = categoryService;
     _commerceService = commerceService;
 }
예제 #11
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="commerceService">The commerce service</param>
        public RebuildNamesDatabaseViewModel(ICommerceService commerceService)
        {
            this.commerceService = commerceService;
            this.cancelToken     = new CancellationTokenSource();
            this.Progress        = 0;

            logger.Debug("Starting rebuild of item database");
            this.TotalRequests = this.commerceService.ItemsDatabaseBuilder.RebuildItemDatabase(this.HandleIncrementProgress, this.HandleComplete, this.cancelToken.Token);
        }
예제 #12
0
 public ItemServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICategoryService categoryService, AbstractValidator <IHasProperties> hasPropertyValidator)
 {
     _catalogService       = catalogService;
     _categoryService      = categoryService;
     _commerceService      = commerceService;
     _outlineService       = outlineService;
     _repositoryFactory    = catalogRepositoryFactory;
     _hasPropertyValidator = hasPropertyValidator;
 }
예제 #13
0
 protected MemberServiceBase(Func <IMemberRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService,
                             IEventPublisher <MemberChangingEvent> memberChangingEventPublisher, IEventPublisher <MemberChangedEvent> memberChangedEventPublisher)
 {
     RepositoryFactory            = repositoryFactory;
     DynamicPropertyService       = dynamicPropertyService;
     MemberChangingEventPublisher = memberChangingEventPublisher;
     MemberChangedEventPublisher  = memberChangedEventPublisher;
     CommerceService = commerceService;
 }
예제 #14
0
 public LogisticServiceImpl(
     IInventoryRepository inventoryRepository,
     ICommerceService commerceService,
     ILocationService locationService
     )
 {
     _inventoryRepository = inventoryRepository;
     _commerceService     = commerceService;
     _googleService       = locationService;
 }
        public RebuildNamesDatabaseViewModel(ICommerceService commerceService)
        {
            this.commerceService = commerceService;
            this.cancelToken = new CancellationTokenSource();
            this.Progress = 0;

            logger.Debug("Starting rebuild of item database");
            this.TotalRequests = this.commerceService.ItemsDatabaseBuilder.RebuildItemDatabase(
                CultureInfo.CurrentUICulture, this.HandleIncrementProgress, this.HandleComplete, this.cancelToken.Token);
        }
예제 #16
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public PriceNotificationConfigView(ICommerceService commerceService, ICommerceController controller)
        {
            logger.Debug("New PriceNotificationConfigView created");
            this.controller  = controller;
            this.viewModel   = new PriceNotificationConfigViewModel(commerceService, controller);
            this.DataContext = this.viewModel;
            InitializeComponent();

            // Set the window size and location
            this.Closing += TPCalculatorView_Closing;
        }
예제 #17
0
 public StoreServiceImpl(Func <IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager,
                         IDynamicPropertyService dynamicPropertyService, IShippingService shippingService, IPaymentMethodsService paymentService, CacheManager cacheManager)
 {
     _repositoryFactory      = repositoryFactory;
     _commerceService        = commerceService;
     _settingManager         = settingManager;
     _dynamicPropertyService = dynamicPropertyService;
     _shippingService        = shippingService;
     _paymentService         = paymentService;
     _cacheManager           = cacheManager;
 }
 public CategoryServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, ICacheManager <object> cacheManager, AbstractValidator <IHasProperties> hasPropertyValidator,
                            IEventPublisher eventPublisher)
 {
     _repositoryFactory    = catalogRepositoryFactory;
     _cacheManager         = cacheManager;
     _hasPropertyValidator = hasPropertyValidator;
     _commerceService      = commerceService;
     _outlineService       = outlineService;
     _catalogService       = catalogService;
     _eventPublisher       = eventPublisher;
 }
예제 #19
0
		public StoreServiceImpl(Func<IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, 
							    IDynamicPropertyService dynamicPropertyService, IShippingService shippingService, IPaymentMethodsService paymentService, CacheManager cacheManager)
        {
            _repositoryFactory = repositoryFactory;
            _commerceService = commerceService;
            _settingManager = settingManager;
            _dynamicPropertyService = dynamicPropertyService;
            _shippingService = shippingService;
            _paymentService = paymentService;
			_cacheManager = cacheManager;
        }
 public CatalogueViewModule(ICatalogueViewService catatalogueService, ICommerceService commerceService, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) {
     _catalogueService = catatalogueService;
     _commerceService = commerceService;
     _editService = editService;
     _accountService = accountService;
     _orderService = orderService;
     _emailSender = emailSender;
     _deliveryService = deliveryService;
     _cultureService = cultureService;
     _userService = userService;
     ParsePathInfo();
 }
예제 #21
0
 public CategoryService(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService, IPlatformMemoryCache memoryCache,
                        AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher, IBlobUrlResolver blobUrlResolver)
 {
     _repositoryFactory    = catalogRepositoryFactory;
     _memoryCache          = memoryCache;
     _hasPropertyValidator = hasPropertyValidator;
     _commerceService      = commerceService;
     _outlineService       = outlineService;
     _catalogService       = catalogService;
     _eventPublisher       = eventPublisher;
     _blobUrlResolver      = blobUrlResolver;
 }
        public ECommerceModule(ICommerceService commerceService, ICatalogueViewService catatalogueService, ICommerceDao dao, IExtCommonDao commonDao, IBasketRules rules, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService)
            : base(catatalogueService, commerceService, editService, accountService, orderService, emailSender, deliveryService, cultureService, userService) {

            _dao = dao;
            _commonDao = commonDao;
            _rules = rules; 
            
            //we now get payment providers from the DB to make it more user friendly
            //PaymentProviders = CommerceService.GetEnabledPaymentProviders();
           

        }
예제 #23
0
 public CatalogModuleExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ICommerceService commerceService,
                                            IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver,
                                            CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService)
     : base(securityService, permissionScopeService)
 {
     _catalogService      = catalogService;
     _notifier            = pushNotificationManager;
     _commerceService     = commerceService;
     _blobStorageProvider = blobStorageProvider;
     _csvExporter         = csvExporter;
     _csvImporter         = csvImporter;
     _blobUrlResolver     = blobUrlResolver;
 }
예제 #24
0
 public ItemService(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, ICatalogService catalogService,
                    ICategoryService categoryService, AbstractValidator <IHasProperties> hasPropertyValidator, IEventPublisher eventPublisher, IBlobUrlResolver blobUrlResolver, ISkuGenerator skuGenerator)
 {
     _catalogService       = catalogService;
     _categoryService      = categoryService;
     _commerceService      = commerceService;
     _outlineService       = outlineService;
     _repositoryFactory    = catalogRepositoryFactory;
     _hasPropertyValidator = hasPropertyValidator;
     _eventPublisher       = eventPublisher;
     _blobUrlResolver      = blobUrlResolver;
     _skuGenerator         = skuGenerator;
 }
 public CatalogModuleExportImportController(ICatalogService catalogService, IPushNotificationManager pushNotificationManager, ICommerceService commerceService,
                                            IBlobStorageProvider blobStorageProvider, IBlobUrlResolver blobUrlResolver,
                                            CsvCatalogExporter csvExporter, CsvCatalogImporter csvImporter, ISecurityService securityService, IPermissionScopeService permissionScopeService)
     : base(securityService, permissionScopeService)
 {
     _catalogService = catalogService;
     _notifier = pushNotificationManager;
     _commerceService = commerceService;
     _blobStorageProvider = blobStorageProvider;
     _csvExporter = csvExporter;
     _csvImporter = csvImporter;
     _blobUrlResolver = blobUrlResolver;
 }
예제 #26
0
        public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller)
        {
            this.commerceService = commerceService;
            this.playerService   = playerService;
            this.zoneService     = zoneService;
            this.controller      = controller;

            this.ItemsProvider = new ItemResultsProvider(this.commerceService);

            this.Task = new PlayerTask();
            this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation);
            this.ApplyCommand           = new DelegateCommand(this.AddOrUpdateTask);
            this.RefreshLocation();
        }
예제 #27
0
 public CsvCatalogImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService,
                           IPushNotificationManager pushNotificationManager, ISkuGenerator skuGenerator,
                           IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService,
                           IPropertyService propertyService, ICatalogSearchService searchService)
 {
     _catalogService          = catalogService;
     _categoryService         = categoryService;
     _productService          = productService;
     _pushNotificationManager = pushNotificationManager;
     _skuGenerator            = skuGenerator;
     _pricingService          = pricingService;
     _inventoryService        = inventoryService;
     _commerceService         = commerceService;
     _propertyService         = propertyService;
     _searchService           = searchService;
 }
 public CsvCatalogImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService,
                           ISkuGenerator skuGenerator,
                           IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService,
                           IPropertyService propertyService, ICatalogSearchService searchService, Func <ICatalogRepository> catalogRepositoryFactory)
 {
     _catalogService           = catalogService;
     _categoryService          = categoryService;
     _productService           = productService;
     _skuGenerator             = skuGenerator;
     _pricingService           = pricingService;
     _inventoryService         = inventoryService;
     _commerceService          = commerceService;
     _propertyService          = propertyService;
     _searchService            = searchService;
     _catalogRepositoryFactory = catalogRepositoryFactory;
 }
예제 #29
0
		public CsvCatalogImporter(ICatalogService catalogService, ICategoryService categoryService, IItemService productService,
								IPushNotificationManager pushNotificationManager, ISkuGenerator skuGenerator,
								IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService,
								IPropertyService propertyService, ICatalogSearchService searchService)
		{
			_catalogService = catalogService;
			_categoryService = categoryService;
			_productService = productService;
			_pushNotificationManager = pushNotificationManager;
			_skuGenerator = skuGenerator;
			_pricingService = pricingService;
			_inventoryService = inventoryService;
			_commerceService = commerceService;
			_propertyService = propertyService;
			_searchService = searchService;
		}
		public MerchandisingModuleProductController(ICatalogSearchService searchService, ICategoryService categoryService,
								 IInventoryService inventoryService, IStoreService storeService, IItemService itemService, IBlobUrlResolver blobUrlResolver,
								 IBrowseFilterService browseFilterService, IItemBrowsingService browseService, IPropertyService propertyService, ICommerceService commerceService,
								 CacheManager cacheManager)
		{
			_itemService = itemService;
			_storeService = storeService;
			_searchService = searchService;
			_categoryService = categoryService;
			_blobUrlResolver = blobUrlResolver;
			_browseFilterService = browseFilterService;
			_browseService = browseService;
			_propertyService = propertyService;
		    _commerceService = commerceService;
		    _inventoryService = inventoryService;
			_cacheManager = cacheManager;
		}
예제 #31
0
        public CommerceController(ICommerceService commerceService, CommerceUserData userData)
        {
            logger.Debug("Initializing Commerce Controller");
            this.commerceService = commerceService;
            this.UserData = userData;
            this.ItemPrices = new ObservableCollection<ItemPriceViewModel>();
            this.PriceNotifications = new ObservableCollection<PriceNotificationViewModel>();

            // Initialize the refresh timer
            this.refreshTimer = new Timer(this.Refresh);
            this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible

            // Initialize the start call count to 0
            this.startCallCount = 0;

            logger.Info("Commerce Controller initialized");
        }
 public MerchandisingModuleProductController(ICatalogSearchService searchService, ICategoryService categoryService,
                                             IInventoryService inventoryService, IStoreService storeService, IItemService itemService, IBlobUrlResolver blobUrlResolver,
                                             IBrowseFilterService browseFilterService, IItemBrowsingService browseService, IPropertyService propertyService, ICommerceService commerceService,
                                             CacheManager cacheManager)
 {
     _itemService         = itemService;
     _storeService        = storeService;
     _searchService       = searchService;
     _categoryService     = categoryService;
     _blobUrlResolver     = blobUrlResolver;
     _browseFilterService = browseFilterService;
     _browseService       = browseService;
     _propertyService     = propertyService;
     _commerceService     = commerceService;
     _inventoryService    = inventoryService;
     _cacheManager        = cacheManager;
 }
예제 #33
0
        public CommerceController(ICommerceService commerceService, CommerceUserData userData)
        {
            logger.Debug("Initializing Commerce Controller");
            this.commerceService    = commerceService;
            this.UserData           = userData;
            this.ItemPrices         = new ObservableCollection <ItemPriceViewModel>();
            this.PriceNotifications = new ObservableCollection <PriceNotificationViewModel>();
            this.EcoSalvageData     = new EctoSalvageHelperViewModel(userData);

            // Initialize the refresh timer
            this.refreshTimer    = new Timer(this.Refresh);
            this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible

            // Initialize the start call count to 0
            this.startCallCount = 0;

            logger.Info("Commerce Controller initialized");
        }
예제 #34
0
 public CsvCatalogImportJob(ICatalogService catalogService, ICategoryService categoryService, IItemService productService,
                            INotifier notifier, CacheManager cacheManager, IBlobStorageProvider blobProvider, ISkuGenerator skuGenerator,
                            IPricingService pricingService, IInventoryService inventoryService, ICommerceService commerceService,
                            IPropertyService propertyService, ICatalogSearchService searchService)
 {
     _catalogService      = catalogService;
     _categoryService     = categoryService;
     _productService      = productService;
     _notifier            = notifier;
     _cacheManager        = cacheManager;
     _blobStorageProvider = blobProvider;
     _skuGenerator        = skuGenerator;
     _pricingService      = pricingService;
     _inventoryService    = inventoryService;
     _commerceService     = commerceService;
     _propertyService     = propertyService;
     _searchService       = searchService;
 }
예제 #35
0
 public SyncController(IMemberService memberService, IMemberSearchService meberSearchService,
                       ICustomerOrderService custemerOrderService, IStoreService storeService,
                       ICatalogSearchService searchService,
                       IItemService itemService, IBlobUrlResolver blobUrlResolver,
                       IPricingSearchService priceSearchService, ISyncSettingsService syncSettingsService,
                       ICommerceService commerceService)
 {
     _memberSearchService  = meberSearchService;
     _memberService        = memberService;
     _customerOrderService = custemerOrderService;
     _storeService         = storeService;
     _catalogSearchService = searchService;
     _itemService          = itemService;
     _blobUrlResolver      = blobUrlResolver;
     _priceSearchService   = priceSearchService;
     _syncSettingsService  = syncSettingsService;
     _commerceService      = commerceService;
 }
예제 #36
0
 public CartsController(ICommerceService commerceService, ILogger logger, HttpContextBase context)
 {
     if (commerceService == null)
     {
         throw new ArgumentNullException(nameof(commerceService));
     }
     if (logger == null)
     {
         throw new ArgumentNullException(nameof(logger));
     }
     if (context == null)
     {
         throw new ArgumentNullException(nameof(context));
     }
     CommerceService = commerceService;
     Logger          = logger;
     Context         = context;
 }
예제 #37
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="dungeonsService">The dungeons service object</param>
        /// <param name="userSettings">The dungeons user settings object</param>
        public CommerceController(ICommerceService commerceService, CommerceSettings userSettings)
        {
            logger.Debug("Initializing Commerce Controller");
            this.commerceService    = commerceService;
            this.UserSettings       = userSettings;
            this.PriceWatches       = new ObservableCollection <PriceWatchViewModel>();
            this.PriceNotifications = new ObservableCollection <PriceNotificationViewModel>();

            this.InitializePriceWatches();

            // Initialize the refresh timer
            this.refreshTimer    = new Timer(this.Refresh);
            this.RefreshInterval = 30000; // 30 seconds... really only need to do this once a minute, but twice a minute isn't terrible

            // Initialize the start call count to 0
            this.startCallCount = 0;

            logger.Info("Commerce Controller initialized");
        }
예제 #38
0
        public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller)
        {
            this.commerceService = commerceService;
            this.playerService   = playerService;
            this.zoneService     = zoneService;
            this.controller      = controller;

            this.ItemsProvider = new ItemResultsProvider(this.commerceService);

            this.ExistingCategories = new List <string>();
            foreach (var task in controller.PlayerTasks)
            {
                if (!string.IsNullOrEmpty(task.Category) && !this.ExistingCategories.Contains(task.Category))
                {
                    this.ExistingCategories.Add(task.Category);
                }
            }

            this.Task = new PlayerTask();
            this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation);
            this.ApplyCommand           = new DelegateCommand(this.AddOrUpdateTask);
            this.RefreshLocation();
        }
예제 #39
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="modelData">The price watch model data</param>
        /// <param name="controller">Commerce controller</param>
        public ItemPriceViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service)
        {
            this.Data               = priceData;
            this.ItemData           = itemData;
            this.controller         = controller;
            this.commerceService    = service;
            this.CurrentBuyOrder    = new Price();
            this.CurrentSellListing = new Price();
            this.CurrentProfit      = new Price();
            this.PastBuyOrders      = new ObservableCollection <DataPoint>();
            this.PastSellListings   = new ObservableCollection <DataPoint>();

            this.IsBuyOrderNotificationShown    = false;
            this.IsSellListingNotificationShown = false;

            this.IsBuyOrderOutOfLimits    = false;
            this.IsSellListingOutOfLimits = false;

            this.Data.PropertyChanged += Data_PropertyChanged;
            this.Data.BuyOrderUpperLimit.PropertyChanged    += BuyOrderLimit_PropertyChanged;
            this.Data.BuyOrderLowerLimit.PropertyChanged    += BuyOrderLimit_PropertyChanged;
            this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged;
            this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged;
        }
예제 #40
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="modelData">The price watch model data</param>
        /// <param name="controller">Commerce controller</param>
        public PriceWatchViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service)
        {
            this.Data               = priceData;
            this.ItemData           = itemData;
            this.controller         = controller;
            this.commerceService    = service;
            this.CurrentBuyOrder    = new Price();
            this.CurrentSellListing = new Price();
            this.ItemsProvider      = new ItemResultsProvider(this.commerceService);

            if (this.ItemData != null)
            {
                this.SelectedItem = this.commerceService.ItemsDB[this.ItemData.ID];
            }

            this.IsBuyOrderNotificationShown    = false;
            this.IsSellListingNotificationShown = false;

            this.Data.PropertyChanged += Data_PropertyChanged;
            this.Data.BuyOrderUpperLimit.PropertyChanged    += BuyOrderLimit_PropertyChanged;
            this.Data.BuyOrderLowerLimit.PropertyChanged    += BuyOrderLimit_PropertyChanged;
            this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged;
            this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged;
        }
 public BotContactMembersService(Func <ICustomerRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, ICommerceService commerceService, ISecurityService securityService, IEventPublisher eventPublisher)
     : base(repositoryFactory, dynamicPropertyService, commerceService, securityService, eventPublisher)
 {
 }
예제 #42
0
        public NewTaskDialogViewModel(ICommerceService commerceService, IPlayerService playerService, IZoneService zoneService, IPlayerTasksController controller)
        {
            this.commerceService = commerceService;
            this.playerService = playerService;
            this.zoneService = zoneService;
            this.controller = controller;

            this.ItemsProvider = new ItemResultsProvider(this.commerceService);

            this.Task = new PlayerTask();
            this.Task.MapID = this.playerService.MapId;
            this.Task.Location = this.playerService.PlayerPosition;
            this.RefreshLocationCommand = new DelegateCommand(this.RefreshLocation);
            this.ApplyCommand = new DelegateCommand(this.AddOrUpdateTask);
        }
예제 #43
0
		public CoreExportImport(ICommerceService commerceService)
		{
			_commerceService = commerceService;
		}
예제 #44
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="modelData">The price watch model data</param>
        /// <param name="controller">Commerce controller</param>
        public ItemPriceViewModel(PriceWatch priceData, Item itemData, ICommerceController controller, ICommerceService service)
        {
            this.Data = priceData;
            this.ItemData = itemData;
            this.controller = controller;
            this.commerceService = service;
            this.CurrentBuyOrder = new Price();
            this.CurrentSellListing = new Price();
            this.CurrentProfit = new Price();
            this.PastBuyOrders = new ObservableCollection<DataPoint>();
            this.PastSellListings = new ObservableCollection<DataPoint>();

            this.IsBuyOrderNotificationShown = false;
            this.IsSellListingNotificationShown = false;

            this.IsBuyOrderOutOfLimits = false;
            this.IsSellListingOutOfLimits = false;

            this.Data.PropertyChanged += Data_PropertyChanged;
            this.Data.BuyOrderUpperLimit.PropertyChanged += BuyOrderLimit_PropertyChanged;
            this.Data.BuyOrderLowerLimit.PropertyChanged += BuyOrderLimit_PropertyChanged;
            this.Data.SellListingUpperLimit.PropertyChanged += SellListingLimit_PropertyChanged;
            this.Data.SellListingLowerLimit.PropertyChanged += SellListingLimit_PropertyChanged;
        }
예제 #45
0
		public CatalogServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService)
		{
			_catalogRepositoryFactory = catalogRepositoryFactory;
			_commerceService = commerceService;
		}
예제 #46
0
 public ItemServiceImpl(Func<ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService)
 {
     _catalogRepositoryFactory = catalogRepositoryFactory;
     _commerceService = commerceService;
     _outlineService = outlineService;
 }
        public MonitoredItemsConfigViewModel(ICommerceService commerceService, ICommerceController controller)
        {
            this.commerceService = commerceService;
            this.controller = controller;

            this.ItemsProvider = new ItemResultsProvider(this.commerceService);
            this.ItemToAdd = new ItemPriceViewModel(new PriceWatch(), new Item(-1, null), this.controller, this.commerceService);
        }
예제 #48
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="commerceService">The commerce service providing access to the commerce API</param>
 public ItemResultsProvider(ICommerceService commerceService)
 {
     this.commerceService = commerceService;
 }
 public ECommerceModule(ICatalogueViewService catatalogueService, ICommerceService commerceService, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) : base(catatalogueService, commerceService, editService, accountService, orderService, emailSender, deliveryService, cultureService, userService) {
 }
		public InventoryModuleController(IInventoryService inventoryService, ICommerceService commerceService)
		{
			_inventoryService = inventoryService;
			_commerceService = commerceService;
		}
예제 #51
0
		public CommerceController(ICommerceService commerceService, ICustomerOrderService customerOrderService, IStoreService storeService)
		{
			_commerceService = commerceService;
			_customerOrderService = customerOrderService;
			_storeService = storeService;
		}