Ejemplo n.º 1
0
        public XmlLocationRepository(IControllerRepository repository, IConfiguration configuration)
        {
            _repository    = repository;
            _configuration = configuration;

            Load();
        }
Ejemplo n.º 2
0
        public PhaseRestModule(IControllerRepository controllerRepository, ITimeTableRepository timeTableRepository, IUpdatesRepository updatesRepository)
            : base("/rest/v1/phases")
        {
            _controllerRepository = controllerRepository;
            _timeTableRepository  = timeTableRepository;
            _updatesRepository    = updatesRepository;

            Get["/"]           = parameters => GetAllPhases();
            Get["/{phase_id}"] = parameters => GetPhase(parameters.phase_id);
            Get["/{phase_id}/timetable/{timetable_id}"] = parameters => ChangePhaseTimeTable(parameters.phase_id, parameters.timetable_id);
            Get["/{phase_id}/timeshift/{timeshift}"]    = parameters => ChangePhaseTimeShift(parameters.phase_id, parameters.timeshift);
        }
Ejemplo n.º 3
0
        public ControllerRestModule(IControllerRepository controllerRepository, IUpdatesRepository updatesRepository)
            : base("/rest/v1/controllers")
        {
            _controllerRepository = controllerRepository;
            _updatesRepository    = updatesRepository;


            Get["/"]       = parameters => GetControllers();
            Get["/{imei}"] = parameters => GetController(parameters.imei);
            Get["/{imei}/timetablefile"] = parameters => GetTimeTableFile(parameters.imei);

            Post["/{imei}/jsonrpc"] = parameters => Invoke(parameters.imei, Context.Request);
        }
Ejemplo n.º 4
0
        public TimeTableRestModule(ITimeTableRepository timeTableRepository, IControllerRepository controllerRepository,
                                   IUpdatesRepository updatesRepository, ISunScheduleService sunScheduleService)
            : base("/rest/v1/timetables")
        {
            _timeTableRepository  = timeTableRepository;
            _controllerRepository = controllerRepository;
            _updatesRepository    = updatesRepository;
            _sunScheduleService   = sunScheduleService;

            Get["/"]     = parameters => GetTimeTables();
            Get["/{id}"] = parameters => GetTimeTable(parameters.id);

            Get["/{id}/Set", ctx => ctx.HasAnyQueryValues(_timeTableKeyValues)] =
                parameters => ChangeTimeTable(parameters.id, Context.Request);
        }
Ejemplo n.º 5
0
 public UserController(IControllerRepository controllerRepository)
 {
     _controllerRepository = controllerRepository;
 }
Ejemplo n.º 6
0
 public StackPanelController(IStackPanelModule module, IServiceLocator services) : base(module, services)
 {
     controllerRepository = services.Get <IControllerRepository>();
 }
Ejemplo n.º 7
0
 public OutpatientController(IControllerRepository controllerRepository)
 {
     _controllerRepository = controllerRepository;
 }
Ejemplo n.º 8
0
 public ButtonController(IButtonModule module, IServiceLocator services) : base(module, services)
 {
     controllerRepository = services.Get <IControllerRepository>();
 }
Ejemplo n.º 9
0
 public ControllerService(IControllerRepository controllerRepository)
 {
     _controllerRepository = controllerRepository;
 }
Ejemplo n.º 10
0
 public UserInterfaceController(IUserInterfaceModule module, IServiceLocator services) : base(module, services)
 {
     this.services        = services;
     mouse                = services.Get <IMouse>();
     controllerRepository = services.Get <IControllerRepository>();
 }
Ejemplo n.º 11
0
 public TestController(IControllerRepository controllerRepository)
 {
     _controllerRepository = controllerRepository;
 }