-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup, convert ocntrol library to standard/core
- Loading branch information
1 parent
ffcd38c
commit 5d47b50
Showing
103 changed files
with
2,946 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="wwwroot\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.App" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" /> | ||
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" /> | ||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.1" /> | ||
<PackageReference Include="System.IO.Ports" Version="4.5.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MPRSGxZ\MPRSGxZ.csproj" /> | ||
<ProjectReference Include="..\NewLib\MPRSGxZ.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Microsoft.AspNetCore.SignalR; | ||
using System.Threading.Tasks; | ||
using AmpAPI.Models; | ||
|
||
namespace AmpApi.Hubs | ||
{ | ||
public class AmpHub : Hub | ||
{ | ||
public async Task SendZoneUpdate(ZoneModel Zone) | ||
{ | ||
await Clients.All.SendAsync("ReceiveZoneUpdate", Zone); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using AmpWeb.Services; | ||
using AmpWeb.Settings; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.Extensions.Options; | ||
using MPRSGxZ.Hardware; | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace AmpWeb.Controllers | ||
{ | ||
[Route("api/[controller]")] | ||
[ApiController] | ||
public class SettingsController : ControllerBase | ||
{ | ||
private AmplifierStackSettings Settings; | ||
private IAmplifierService AmplifierService; | ||
|
||
public SettingsController(IOptions<AmplifierStackSettings> Settings, IAmplifierService AmplifierService) | ||
{ | ||
this.Settings = Settings.Value; | ||
this.AmplifierService = AmplifierService; | ||
} | ||
|
||
// GET: api/Settings | ||
[HttpGet] | ||
[ProducesResponseType(StatusCodes.Status200OK)] | ||
public IActionResult Get() | ||
{ | ||
return Ok(Settings); | ||
} | ||
|
||
// POST: api/Settings | ||
[HttpPost] | ||
[ProducesResponseType(StatusCodes.Status405MethodNotAllowed)] | ||
public IActionResult Post([FromBody] string value) | ||
{ | ||
return StatusCode(StatusCodes.Status405MethodNotAllowed); | ||
} | ||
|
||
// PUT: api/Settings/5 | ||
[HttpPut] | ||
[ProducesResponseType(StatusCodes.Status200OK)] | ||
[ProducesResponseType(StatusCodes.Status400BadRequest)] | ||
public void Put([FromBody] string value) | ||
{ | ||
} | ||
|
||
// DELETE: api/ApiWithActions/5 | ||
[HttpDelete("{id}")] | ||
[ProducesResponseType(StatusCodes.Status405MethodNotAllowed)] | ||
public IActionResult Delete(int id) | ||
{ | ||
return StatusCode(StatusCodes.Status405MethodNotAllowed); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,8 +140,3 @@ | |
|
||
</body> | ||
</html> | ||
|
||
@page | ||
@model AmpWeb.Pages.IndexModel | ||
@{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.