using EC.App.Core;
using EC.App.ThatBLL.Onvif.Impl;
using Furion.DataValidation;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
namespace OnvifWebServer.Controllers.Onvif
{
///
/// Onvif 媒体参数控制
///
[Route("onvif/[controller]")]
[ApiDescriptionSettings("Onvif")]
public class MediaController : ApiController
{
private readonly IMediaBLL _mediaBLL;
///
///
///
///
public MediaController(IMediaBLL mediaBLL)
{
this._mediaBLL = mediaBLL;
}
#region Operate
///
/// 是否连接
///
///
///
[HttpGet]
public bool IsConnected(
[Required][DataValidation(ValidationTypes.IPv4)] string ip)
{
bool ret = _mediaBLL.IsConnected(ip);
return ret;
}
#endregion Operate
}
}