IPCamAppBar/IPCamAppBar/Config.cs

46 lines
945 B
C#
Raw Normal View History

2019-08-23 09:13:10 +00:00
using System.Collections.Generic;
namespace IPCamAppBar
{
public class Config
{
2021-07-13 16:09:03 +00:00
public ConfigAppBar AppBar { get; } = new();
2019-08-23 09:13:10 +00:00
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; }
2021-07-13 16:09:03 +00:00
public int Spacing { get; set; }
2019-08-23 09:13:10 +00:00
}
2021-07-13 16:09:03 +00:00
// ReSharper disable InconsistentNaming
public enum ConfigCameraType
{
HTTPMJPEG,
RTSP
}
// ReSharper restore InconsistentNaming
2019-08-23 09:13:10 +00:00
public class ConfigCamera
{
2021-07-13 16:09:03 +00:00
public ConfigCameraType Type { get; set; }
2019-08-23 09:13:10 +00:00
public string URL { get; set; }
public int Width { get; set; }
public int Height { get; set; }
2021-07-13 16:09:03 +00:00
public bool OverlayDateTime { get; set; }
2019-08-23 09:13:10 +00:00
}
}