using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace SmartAquaViewer.Model
{
    public class CCTVInfo : INotifyPropertyChanged
    {
        public string? DeviceId { get; set; }
        public string? DeviceName { get; set; }
        public string? RtspUrl { get; set; }

        private CCTVStatus? _status;
        public CCTVStatus? Status
        {
            get => _status;
            set 
            { 
                if (_status != value)
                {
                    _status = value; 
                    OnPropertyChanged(); 
                }
            }
        }

        public event PropertyChangedEventHandler? PropertyChanged;
        private void OnPropertyChanged([CallerMemberName] string? name = null)
            => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
    }
}
