46 lines
945 B
C#
46 lines
945 B
C#
using System.Collections.Generic;
|
|
|
|
namespace IPCamAppBar
|
|
{
|
|
public class Config
|
|
{
|
|
public ConfigAppBar AppBar { get; } = new();
|
|
public List<ConfigCamera> Cameras { get; set; }
|
|
}
|
|
|
|
|
|
public enum ConfigSide
|
|
{
|
|
Top,
|
|
Left,
|
|
Bottom,
|
|
Right
|
|
}
|
|
|
|
public class ConfigAppBar
|
|
{
|
|
public int Monitor { get; set; }
|
|
public ConfigSide Side { get; set; }
|
|
public int Size { get; set; }
|
|
public int Spacing { get; set; }
|
|
}
|
|
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
public enum ConfigCameraType
|
|
{
|
|
HTTPMJPEG,
|
|
RTSP
|
|
}
|
|
// ReSharper restore InconsistentNaming
|
|
|
|
public class ConfigCamera
|
|
{
|
|
public ConfigCameraType Type { get; set; }
|
|
public string URL { get; set; }
|
|
public int Width { get; set; }
|
|
public int Height { get; set; }
|
|
public bool OverlayDateTime { get; set; }
|
|
}
|
|
}
|