31 lines
686 B
C#
31 lines
686 B
C#
using MongoDB.Bson;
|
|
|
|
namespace adas_core.Domain.Models.MongoModels;
|
|
|
|
public class Camera
|
|
{
|
|
public ObjectId Id { get; set; }
|
|
public string? Name { get; set; } = string.Empty;
|
|
|
|
public Stream? Streams { get; set; }
|
|
|
|
public bool Ptz { get; set; }
|
|
|
|
public string? Driver { get; set; }
|
|
|
|
public string? Ip { get; set; }
|
|
|
|
public string? Username { get; set; }
|
|
|
|
public string? Password { get; set; }
|
|
public bool InUse { get; private set; }
|
|
}
|
|
|
|
public class Stream
|
|
{
|
|
public string? Rtsp { get; set; }
|
|
public string? Jpeg { get; set; }
|
|
public string? WebRtc { get; set; }
|
|
public string? Hls { get; set; }
|
|
public string? Mp4 { get; set; }
|
|
} |