Add server api definition

This commit is contained in:
2025-05-24 19:54:06 +02:00
commit a80465c6c1
37 changed files with 3842 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
using Microsoft.AspNetCore.Mvc;
using MusicCast.Net.Api.Server.Models;
namespace MusicCast.Net.Api.Server.Controllers;
[ApiController]
[Route("/YamahaExtendedControl/v1/system/")]
public class SystemController : ControllerBase
{
[HttpGet]
[Route("getFeatures")]
[EndpointSummary("Get the available features for this device")]
public GetFeaturesResponse GetFeatures()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getLocationInfo")]
public GetLocationInfoResponse GetLocationInfo()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getNameText")]
[EndpointSummary("Get sources friendly names")]
public GetNameTextResponse GetNameText()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getDeviceInfo")]
public GetDeviceInfoResponse GetDeviceInfo()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("isNewFirmwareAvailable")]
public IsNewFirmwareAvailableResponse IsNewFirmwareAvailable([FromQuery] string type)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getFuncStatus")]
public GetFuncStatusResponse GetFuncStatus()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getDisklavierSettings")]
public GetDisklavierSettingsResponse GetDisklavierSettings()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getTag")]
public GetTagResponse GetTag()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getYpaoConfig")]
public GetYpaoConfigResponse GetYpaoConfig()
{
throw new NotImplementedException();
}
[HttpGet]
[Route("setSpeakerA")]
public BaseResponse setSpeakerA([FromQuery] bool enable)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("setSpeakerB")]
public BaseResponse setSpeakerB([FromQuery] bool enable)
{
throw new NotImplementedException();
}
[HttpGet]
[Route("getNetworkStandby")]
public GetNetworkStandbyResponse GetNetworkStandby()
{
throw new NotImplementedException();
}
}