Add server api definition
This commit is contained in:
59
MusicCast.Net.Api.Server/Controllers/MainController.cs
Normal file
59
MusicCast.Net.Api.Server/Controllers/MainController.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using MusicCast.Net.Api.Server.Models;
|
||||
|
||||
namespace MusicCast.Net.Api.Server.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("/YamahaExtendedControl/v1/main/")]
|
||||
public class MainController
|
||||
{
|
||||
[HttpGet]
|
||||
[Route("getStatus")]
|
||||
public GetStatusResponse GetStatus()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("getSignalInfo")]
|
||||
public GetSignalInfoResponse GetSignalInfo()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("setVolume")]
|
||||
public BaseResponse SetVolume([FromQuery] int volume)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("prepareInputChange")]
|
||||
public BaseResponse PrepareInputChange([FromQuery] string input)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("setInput")]
|
||||
public BaseResponse SetInput([FromQuery] string input)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[EndpointSummary("Shutdown after the specified interval in minutes")]
|
||||
[HttpGet]
|
||||
[Route("setSleep")]
|
||||
public BaseResponse SetSleep([FromQuery] int sleep)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("setPower")]
|
||||
public BaseResponse SetPower([FromQuery] PowerState power)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user