mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-01-11 19:44:44 +00:00
33 lines
714 B
C#
33 lines
714 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Core
|
|
{
|
|
/// <summary>
|
|
/// Unique key interface to require a unique key for the class
|
|
/// </summary>
|
|
public interface IKeyed
|
|
{
|
|
/// <summary>
|
|
/// Unique Key
|
|
/// </summary>
|
|
string Key { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Named Keyed device interface
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Forces the device to have a Unique Key and a name.
|
|
/// </remarks>
|
|
public interface IKeyName : IKeyed
|
|
{
|
|
/// <summary>
|
|
/// Isn't it obvious :)
|
|
/// </summary>
|
|
string Name { get; }
|
|
}
|
|
} |