public VehicleCatService(IMessageDialog dialog, ILoggedInUserService l_user)
        {
            _dialog = dialog;
           // _table_name = _table_name.ToDbSchemaTable();
            m_logged_user = l_user.GetLoggedInUser();

        }
Ejemplo n.º 2
0
 public TagService(
     IMongoClient client,
     IBaseRepository <Domain.Entities.Tag> repository,
     ILoggedInUserService loggedInUserService,
     IDatabaseContext context)
     : base(client, repository, loggedInUserService, context)
 {
     this.SetCollectionName("Tags");
 }
Ejemplo n.º 3
0
        public BaseService(
            IMongoClient client,
            IBaseRepository <T> repository,
            ILoggedInUserService loggedInUserService,
            IDatabaseContext context)
        {
            this._database = client.GetDatabase(context.DatabaseName);

            this._loggedInUserService = loggedInUserService;

            this._repository = repository;
            ////this._repository.SetCollection(this._database.GetCollection<T>(nameof(T)));
        }
Ejemplo n.º 4
0
 public UnitOfWork(BuildingDbContext context, ILoggedInUserService loggedInUserService)
 {
     _context             = context;
     Projects             = new ProjectRepository(_context);
     Suppliess            = new SuppliesRepository(_context);
     Buildings            = new BuildingRepository(_context);
     BuildingOuts         = new BuildingOutRepository(_context);
     Components           = new ComponentRepository(_context);
     OutbuildingType      = new OutbuildingsTypeRepository(_context);
     Attachments          = new AttachmentRepository(_context);
     AttachmentContents   = new AttachmentContentRepository(_context);
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 5
0
        private static void CheckUserInfo()
        {
            ILoggedInUserService  userService = LoggedInUserServiceFactory.ServiceInstance;
            CloudServicesUserInfo userInfo    = userService.LoggedInUserInfo;

            if (userInfo != null)
            {
                Debug.WriteLine(userInfo.UserNickName);
            }
            else
            {
                MessageBox.Show(@"Null User Info");
            }
        }
Ejemplo n.º 6
0
        public FitbitViewModel(
			IGetFitWebService getFitWebService,
			ICredentialRetrieverService credentialRetrieverService,
			ILoggedInUserService loggedInUserService)
            : base(UserDeviceSelections.Fitbit)
        {
            getFitWebService.CheckIfNull ("getFitWebService");
            credentialRetrieverService.CheckIfNull ("credentialRetrieverService");
            loggedInUserService.CheckIfNull ("loggedInUserService");

            this.getFitWebService = getFitWebService;
            this.credentialRetrieverService = credentialRetrieverService;
            this.loggedInUserService = loggedInUserService;
        }
Ejemplo n.º 7
0
        public UserLoginViewModel(IGetFitWebService getFitWebService, 
			ICredentialRetrieverService credentialRetrieverService,
			ILoggedInUserService loggedInUserService)
        {
            getFitWebService.CheckIfNull("getFitWebService");
            credentialRetrieverService.CheckIfNull("credentialRetrieverService");
            loggedInUserService.CheckIfNull("loggedInUserService");

            this.credentialRetrieverService = credentialRetrieverService;
            this.getFitWebService = getFitWebService;
            this.loggedInUserService = loggedInUserService;

            this.DoAfterSuccessfulLoginCommand = new MvxCommand<MobileServiceUser> (this.ExecuteDoAfterSuccessfulLogin);
        }
		public UserDeviceManagerViewModel (
			ICredentialRetrieverService credentialRetrieverService,
			ILoggedInUserService loggedInUserService,
			IGetFitWebService getFitWebService)
		{
			credentialRetrieverService.CheckIfNull("credentialRetrieverService");
			loggedInUserService.CheckIfNull("loggedInUserService");
			getFitWebService.CheckIfNull("getFitWebService");

			this.credentialRetrieverService = credentialRetrieverService;
			this.loggedInUserService = loggedInUserService;
			this.getFitWebService = getFitWebService;

			this.AddUserDeviceCommand = new MvxCommand (() => this.ShowViewModel<AddUserDeviceViewModel>());
			this.DeleteUserDeviceCommand = new MvxCommand (this.DeleteExecute, this.CanDelete);

			this.UserDevices = new ObservableCollection<UserDevice> ();

			this.UserDevices.Add (new NullUserDevice ());
		}
        public AddUserDeviceViewModel(
			ILoggedInUserService loggedInUserService,
			IMobileServiceClient mobileServiceClient)
        {
            loggedInUserService.CheckIfNull("loggedInUserService");

            this.DeviceSelections = new ObservableCollection<string>();

            this.AddCommand = new MvxCommand(this.AddExecute, this.CanAdd);

            // setup key actions
            this.keyActions = new Dictionary<string, Action>
                           {
                               { UserDeviceSelections.Garmin, () => this.ShowViewModel<GarminViewModel>() },
                                     { UserDeviceSelections.Fitbit, () => this.ShowViewModel<FitbitViewModel>() },
                           };

            this.DeviceSelections = new ObservableCollection<string> {
                UserDeviceSelections.Garmin,
                UserDeviceSelections.Fitbit
            };
        }
Ejemplo n.º 10
0
		public GarminViewModel(
			IGetFitWebService getFitWebService,
			ICredentialRetrieverService credentialRetrieverService,
			ILoggedInUserService loggedInUserService)
			: base(UserDeviceSelections.Garmin)
		{
			getFitWebService.CheckIfNull("getFitWebService");
			loggedInUserService.CheckIfNull("loggedInUserService");
			credentialRetrieverService.CheckIfNull("credentialRetrieverService");

			this.getFitWebService = getFitWebService;
			this.loggedInUserService = loggedInUserService;
			this.credentialRetrieverService = credentialRetrieverService;

			this.newModel = new UserDevice
			{
				UserId = loggedInUserService.LoggedInUser.UserId,
				DeviceSelection = UserDeviceSelections.Garmin,
			};

			this.AddCommand = new MvxCommand(this.AddExecute, this.CanAdd);
		}
Ejemplo n.º 11
0
 public ExpenseClaimDbContext(DbContextOptions <ExpenseClaimDbContext> options, ILoggedInUserService loggedInUserService)
     : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 12
0
 public PersonalDbContext(DbContextOptions <PersonalDbContext> options, ILoggedInUserService loggedInUserService) : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 13
0
 public AppStart(ILoggedInUserService userService)
 {
     _userService = userService;
 }
 public ExpenseTypeService(IMessageDialog dialog, ILoggedInUserService l_user)
 {
     _dialog       = dialog;
     m_logged_user = l_user.GetLoggedInUser();
 }
 public FuelStationService(IMessageDialog dialog, ILoggedInUserService l_user)
 {
     _dialog       = dialog;
     m_logged_user = l_user.GetLoggedInUser();
 }
Ejemplo n.º 16
0
 public VehicleOwnerService(IMessageDialog dialog, ILoggedInUserService l_user)
 {
     _dialog       = dialog;
     m_logged_user = l_user.GetLoggedInUser();
 }
Ejemplo n.º 17
0
 public SightseeingDbContext(DbContextOptions <SightseeingDbContext> options, ILoggedInUserService loggedInUserService) : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 18
0
 public AppDbContext(DbContextOptions <AppDbContext> options, ILoggedInUserService loggedInUserService)
     : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
 public KakaoTicketDbContext(DbContextOptions <KakaoTicketDbContext> options, ILoggedInUserService loggedInUserService)
     : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 20
0
 public TicketManagementDbContext(DbContextOptions <TicketManagementDbContext> options, ILoggedInUserService loggedInUserService)
     : base(options)
 {
     _loggedInUserService = loggedInUserService;
 }
Ejemplo n.º 21
0
 public CreditorService(IMessageDialog dialog, ILoggedInUserService l_user)
 {
     _dialog       = dialog;
     m_logged_user = l_user.GetLoggedInUser();
 }
Ejemplo n.º 22
0
 public HomeController(IMediator mediator, ILoggedInUserService loggedInUserService, ILogger <HomeController> logger)
 {
     _mediator            = mediator;
     _loggedInUserService = loggedInUserService;
     _logger = logger;
 }
Ejemplo n.º 23
0
 public GloboTicketDbContext(DbContextOptions <GloboTicketDbContext> options, ILoggedInUserService loggedInUserService)
     : base(options)
 {
     this.loggedInUserService = loggedInUserService;
 }