mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-26 10:54:59 +00:00
35 lines
750 B
C#
35 lines
750 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using Newtonsoft.Json;
|
|
using Serilog;
|
|
|
|
namespace PepperDash.Core
|
|
{
|
|
/// <summary>
|
|
/// Unique key interface to require a unique key for the class
|
|
/// </summary>
|
|
public interface IKeyed
|
|
{
|
|
/// <summary>
|
|
/// Unique Key
|
|
/// </summary>
|
|
[JsonProperty("key")]
|
|
string Key { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Named Keyed device interface. Forces the device to have a Unique Key and a name.
|
|
/// </summary>
|
|
public interface IKeyName : IKeyed
|
|
{
|
|
/// <summary>
|
|
/// Isn't it obvious :)
|
|
/// </summary>
|
|
[JsonProperty("name")]
|
|
string Name { get; }
|
|
}
|
|
|
|
} |