mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 21:24:54 +00:00
Adds PresetBase class and new IHasCameraPresets interface
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.AppServer.Messengers
|
||||||
|
{
|
||||||
|
public class CameraBaseMessenger
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.Presets
|
||||||
|
{
|
||||||
|
public class PresetBase
|
||||||
|
{
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public int ID { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Used to store the name of the preset
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("description")]
|
||||||
|
public string Description { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the preset is defined(stored) in the codec
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("defined")]
|
||||||
|
public bool Defined { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates if the preset has the capability to be defined
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("isDefinable")]
|
||||||
|
public bool IsDefinable { get; set; }
|
||||||
|
|
||||||
|
public PresetBase(int id, string description, bool def, bool isDef)
|
||||||
|
{
|
||||||
|
ID = id;
|
||||||
|
Description = description;
|
||||||
|
Defined = def;
|
||||||
|
IsDefinable = isDef;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Devices.Common.Cameras
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Describes a camera with preset functionality
|
||||||
|
/// </summary>
|
||||||
|
public interface IHasCameraPresets
|
||||||
|
{
|
||||||
|
event EventHandler<EventArgs> PresetsListHasChanged;
|
||||||
|
|
||||||
|
List<CameraPreset> Presets { get; }
|
||||||
|
|
||||||
|
void PresetSelect(int preset);
|
||||||
|
|
||||||
|
void PresetStore(int preset, string description);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user