mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 09:15:06 +00:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Essentials.Core
|
|
{
|
|
/// <summary>
|
|
/// Special container class for CrestronSecret provider
|
|
/// </summary>
|
|
public class CrestronSecret : ISecret
|
|
{
|
|
/// <summary>
|
|
/// Gets the Provider
|
|
/// </summary>
|
|
public ISecretProvider Provider { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Gets the Key
|
|
/// </summary>
|
|
public string Key { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Gets the Value
|
|
/// </summary>
|
|
public object Value { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Constructor for CrestronSecret
|
|
/// </summary>
|
|
/// <param name="key">key for the secret</param>
|
|
/// <param name="value">value of the secret</param>
|
|
/// <param name="provider">provider of the secret</param>
|
|
public CrestronSecret(string key, string value, ISecretProvider provider)
|
|
{
|
|
Key = key;
|
|
Value = value;
|
|
Provider = provider;
|
|
}
|
|
|
|
}
|
|
|
|
} |