コード例 #1
0
ファイル: HomeModule.cs プロジェクト: RussPAll/FhemDotNet
 public HomeModule(IThermostatRepository thermostatRepository)
 {
     Get["/"] = parameters =>
         {
             var model = thermostatRepository.GetThermostatList();
             var viewModel = model.Select(x => new ThermostatViewModel
                 {
                     Name = x.Name
                 }).ToList();
             return View["Index", viewModel];
         };
 }
コード例 #2
0
 public DevicesInteractor(IThermostatRepository repoository)
 {
     _repoository = repoository;
 }
コード例 #3
0
 public void AddSubsystem(IThermostatRepository switchRepo)
 {
     switchRepos.Add(switchRepo.SubsystemName, (IThermostatRepository <TIn, TOut>)switchRepo);
 }