You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
926 B

3 years ago
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
{
/// <summary>
/// Onvif 成像参数控制
/// </summary>
[Route("onvif/[controller]")]
[ApiDescriptionSettings("Onvif")]
public class ImagingController : ApiController
{
private readonly IImagingBLL _imagingBLL;
/// <summary>
///
/// </summary>
/// <param name="imagingBLL"></param>
public ImagingController(IImagingBLL imagingBLL)
{
this._imagingBLL = imagingBLL;
}
#region Operate
/// <summary>
/// 是否连接
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
[HttpGet]
public bool IsConnected(
[Required][DataValidation(ValidationTypes.IPv4)] string ip)
{
bool ret = _imagingBLL.IsConnected(ip);
return ret;
}
#endregion Operate
}
}