Example #1
0
        public PowerSwitchAPIController(IJsonDatabaseService jsonDatabaseService, IServiceProvider serviceProvider, ILogger <PowerSwitchAPIController> logger)
        {
            this.logger = logger;

            this.jsonDatabaseService = jsonDatabaseService;
            this.serviceProvider     = serviceProvider;
        }
 public ActionExecutionService(IJsonDatabaseService memoryEntitiesService, IEvaluateConditionService evaluateConditionService, IServiceProvider serviceProvider, ILogger <ActionExecutionService> logger)
 {
     this.memoryEntitiesService    = memoryEntitiesService;
     this.evaluateConditionService = evaluateConditionService;
     this.serviceProvider          = serviceProvider;
     this.logger = logger;
 }
Example #3
0
 public TriggerService(IActionExecutionService actionExecutionService, IEvaluateConditionService evaluateConditionService, IJsonDatabaseService memoryEntitiesService, ILogger <TriggerService> logger)
 {
     this.actionExecutionService   = actionExecutionService;
     this.evaluateConditionService = evaluateConditionService;
     this.memoryEntitiesService    = memoryEntitiesService;
     this.logger = logger;
 }
Example #4
0
        public AgvService()
        {
            _jsonDatabaseService = FreshIOC.Container.Resolve <IJsonDatabaseService>();
            _barmanService       = FreshIOC.Container.Resolve <IBarmanService>();
            _agv = _jsonDatabaseService.GetAgvData();

            var robotData = _jsonDatabaseService.GetAgvData();

            _robot = new RobotClient("Miron", IPAddress.Parse(robotData.Ip), robotData.Port);
        }
Example #5
0
        public SoundService()
        {
            _sounds          = new List <Sound>();
            _databaseService = FreshIOC.Container.Resolve <IJsonDatabaseService>();

            _sounds             = _databaseService.GetSoundInfo();
            _openingSounds      = _sounds.Where(x => x.Path.Contains("Opening")).ToList();
            _beforeSpillSounds  = _sounds.Where(x => x.Path.Contains("BeforeSpill")).ToList();
            _afterSpillSounds   = _sounds.Where(x => x.Path.Contains("AfterSpill")).ToList();
            _changeBottleSounds = _sounds.Where(x => x.Path.Contains("ChangeBottle")).ToList();
        }
Example #6
0
        public ZWaveWebhookController(DefaultContext context, IJsonDatabaseService jsonDatabaseService, IZWaveAPIService zwaveAPIService, ITriggerService triggerService, IHubContext <LogHub> hubContext, IConfiguration configuration, ILogger <ZWaveWebhookController> logger)
        {
            this.logger = logger;

            this.context             = context;
            this.jsonDatabaseService = jsonDatabaseService;
            this.zwaveAPIService     = zwaveAPIService;
            this.triggerService      = triggerService;
            this.hubContext          = hubContext;
            this.configuration       = configuration;
        }
Example #7
0
        public RobotService()
        {
            _databaseService = FreshIOC.Container.Resolve <IJsonDatabaseService>();
            Robot            = _databaseService.GetRobotData();

            Speed            = 50;
            IsRobotInRelax   = true;
            IsRobotBusy      = false;
            IsRobotConnected = false;

            GripperState    = GripperState.Closed;
            CurrentPosition = new Position();
            CurrentPose     = new Pose();
        }
Example #8
0
        public BarmanService()
        {
            _robotService      = FreshIOC.Container.Resolve <IRobotService>();
            _databaseService   = FreshIOC.Container.Resolve <IJsonDatabaseService>();
            _bottleTokenSource = new CancellationTokenSource();
            _agvTokenSource    = new CancellationTokenSource();

            Speed          = 60;
            SelectedBottle = new DrinksPageItem
            {
                DrinkPosition = DrinkPosition.First
            };

            BaseCupPosition = _databaseService.GetBaseCupPosition();
        }
Example #9
0
 public PowerSwitchController(IJsonDatabaseService jsonDatabaseService)
 {
     this.jsonDatabaseService = jsonDatabaseService;
 }
Example #10
0
 public HomeController(IJsonDatabaseService jsonDatabaseService)
 {
     this.jsonDatabaseService = jsonDatabaseService;
 }
Example #11
0
 public TriggerScheduledJob(IJsonDatabaseService jsonDatabaseService, ISunDataService sunDataService, ITriggerService triggerService)
 {
     this.jsonDatabaseService = jsonDatabaseService;
     this.sunDataService      = sunDataService;
     this.triggerService      = triggerService;
 }
 public SensorController(IJsonDatabaseService jsonDatabaseService)
 {
     this.jsonDatabaseService = jsonDatabaseService;
 }
 public CameraController(IJsonDatabaseService jsonDatabaseService)
 {
     this.jsonDatabaseService = jsonDatabaseService;
 }
Example #14
0
 public EmailReceiveService(IJsonDatabaseService jsonDatabaseService, IServiceScopeFactory serviceScopeFactory, ILogger <EmailReceiveService> logger)
 {
     this.jsonDatabaseService = jsonDatabaseService;
     this.serviceScopeFactory = serviceScopeFactory;
     this.logger = logger;
 }