using Core.Protocol;
using System.Runtime.Serialization;

namespace SHH.MjpegPlayer
{
    /// <summary>
    /// Mjpeg播放信息回复
    /// </summary>
    [DataContract]
    public class MjpegPlayInfoReply : BaseReply
    {
        /// <summary>
        /// 返回的信息集合
        /// </summary>
        [DataMember]
        public List<MjpegPlayInfo> Infos { get; set; }
            = new List<MjpegPlayInfo>();
    }

    public class MjpegPlayInfo
    {
        /// <summary>
        /// 摄像头 ID
        /// </summary>
        [DataMember]
        public Int32 CameraId { get; set; }

        /// <summary>
        /// 分析类型代码
        /// </summary>
        [DataMember]
        public int AITypeCode { get; set; }

        /// <summary>
        /// 分析类型
        /// </summary>
        [DataMember]
        public string AIType { get; set; }
            = string.Empty;

        /// <summary>
        /// Rtsp 端口
        /// </summary>
        [DataMember]
        public Int32 RtspPort { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string Account { get; set; }
            = string.Empty;

        /// <summary>
        /// 密码
        /// </summary>
        [DataMember]
        public string Password { get; set; }
            = string.Empty;
    }
}