Exemplo n.º 1
0
 public SettingsViewModel()
 {
     _userPreferenceService = DependencyResolver.Resolve<IUserPreferenceService>();
     _referenceDataService = DependencyResolver.Resolve<IReferenceDataService>();
     LoadScreenData();
    // this.Subscribe<NavigateToSettingsPage>(async message =>  { await LoadScreenData(); });
 }
Exemplo n.º 2
0
 public ProductsController(IProductRepository productRepo, IUserPreferenceService userPrefService, ILocalizedMessageService messageService)
 {
     this._productRepository     = productRepo;
     this._userPreferenceService = userPrefService;
     this._messageService        = messageService;
     this._searchService         = new ProductSearchService(_productRepository);
 }
Exemplo n.º 3
0
 public SettingsViewModel()
 {
     _userPreferenceService = DependencyResolver.Resolve <IUserPreferenceService>();
     _referenceDataService  = DependencyResolver.Resolve <IReferenceDataService>();
     LoadScreenData();
     // this.Subscribe<NavigateToSettingsPage>(async message =>  { await LoadScreenData(); });
 }
Exemplo n.º 4
0
        public UserTaskService(RestService restService, IDbContext dbContext,ITokenProvider tokenProvider, IUserPreferenceService userPreferenceService)
        {
            _restService = restService;
            _dbContext = dbContext;

            var _authToken = tokenProvider.GetCurrentToken().Result;
            _currentLoggedInUser = userPreferenceService.GetUserByEmailId(_authToken.Email).Result;
        }
 public ContextAnalyzerService(IUserPreferenceService userPreferenceService, ICoreResponseGenerator coreResponseGenerator, IActivityApi activityApi, IGeoCode geoCode, IContextCheckerService contextChecker, IHotelApi hotelApi)
 {
     _userPreferenceService = userPreferenceService;
     _hotelApi              = hotelApi;
     _activityApi           = activityApi;
     _coreResponseGenerator = coreResponseGenerator;
     _contextChecker        = contextChecker;
     _geoCode = geoCode;
 }
        public UsageItemsViewModel(IReferenceDataService referenceDataService, IUserPreferenceService userPreferenceService, IUserTaskService userTaskService,
                                   Client selectedClient)
        {
            _referenceDataService  = referenceDataService;
            _userPreferenceService = userPreferenceService;
            _userTaskService       = userTaskService;
            _selectedClient        = selectedClient;

            Init();
        }
Exemplo n.º 7
0
        public ClientsViewModel(IReferenceDataService referenceDataService, IUserPreferenceService userPreferenceService)
        {
            _referenceDataService  = referenceDataService;
            _userPreferenceService = userPreferenceService;

            BackCommand = new Command(OnBackCommandFired);
            NavigateToSettingsCommand = new Command(OnNavigateToSettingsPage);
            FilterClients             = new Command <string>(async seachText => { await OnFilterClients(seachText); });
            ClientSelectedCommand     = new Command <Client>(OnClientSelected);

            Init();
        }
Exemplo n.º 8
0
        public MainViewModel(IServerService serverService, IApplicationContextService applicationContextService, ILoggingService loggingService, IUserPreferenceService userPreferenceService, IDbConnectionService dbConnectionService)
        {
            _serverService             = serverService;
            _applicationContextService = applicationContextService;
            _loggingService            = loggingService;
            _userPreferenceService     = userPreferenceService;
            _dbConnectionService       = dbConnectionService;

            DataMigrateCommand    = new AsyncRelayCommand(DataMigrateCommandHandler);
            ConnectToOutputServer = new AsyncRelayCommand(ConnectToOutputServerHandler);
            ConnectToInputServer  = new AsyncRelayCommand(ConnectToInputServerHandler);
        }
Exemplo n.º 9
0
        public ClientsViewModel(IReferenceDataService referenceDataService, IUserPreferenceService userPreferenceService)
        {
            _referenceDataService = referenceDataService;
            _userPreferenceService = userPreferenceService;

            BackCommand = new Command(OnBackCommandFired);
            NavigateToSettingsCommand = new Command(OnNavigateToSettingsPage);
            FilterClients = new Command<string>(async seachText => { await OnFilterClients(seachText); });
            ClientSelectedCommand = new Command<Client>(OnClientSelected);

            Init();
        }
 public MessageController(IMediator mediator, IUserPreferenceService userPreferenceService, IConfiguration configuration) : base(mediator)
 {
     _userPreferenceService = userPreferenceService;
     _client    = SessionsClient.Create();
     _projectId = configuration.Get <DialogFlowCredentials>().ProjectId;
 }
 public UserPreferenceController(UserPreferenceService userPreferencesrv)
 {
     _iUserPreferenceSrv = userPreferencesrv;
 }
Exemplo n.º 12
0
 public UserPreferenceController(IDomainManagerService domainManagerService,
                                 IUserPreferenceService userPreferenceService) : base(domainManagerService)
 {
     _userPreferenceService = userPreferenceService;
 }
 public CollectionController(ItemContainerService ItemContainerSrv)
 {
     _itemcontainerPartialSrv        = ItemContainerSrv;
     _itemcontainerPartialSrv.UserVM = UserVM;
     _iUserPreferenceSrv             = new UserPreferenceService();
 }
 public CointreeAPICallController(IPriceService priceService, ICoinService coinService, IUserPreferenceService userPrefService)
 {
     this.priceService    = priceService;
     this.coinService     = coinService;
     this.userPrefService = userPrefService;
 }
 public UserPreferenceController(IUserPreferenceService svc)
 {
     // This will be a (injected) constructor parameter in ASP.vNext.
     _svc = svc;
 }
Exemplo n.º 16
0
        public UserTaskService(RestService restService, IDbContext dbContext, ITokenProvider tokenProvider, IUserPreferenceService userPreferenceService)
        {
            _restService = restService;
            _dbContext   = dbContext;

            var _authToken = tokenProvider.GetCurrentToken().Result;

            _currentLoggedInUser = userPreferenceService.GetUserByEmailId(_authToken.Email).Result;
        }
 public ItemContainerPartialController(ItemContainerService ItemContainerSrv)
 {
     _itemcontainerPartialSrv = ItemContainerSrv;
     _iUserPreferenceSrv      = new UserPreferenceService();
 }
Exemplo n.º 18
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="userPreferenceService"></param>
        public FileStoreService(IUserPreferenceService <AppSettings> userPreferenceService)
        {
            this.userPreferenceService = userPreferenceService;

            this.InitializeStorage();
        }