mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
30 lines
866 B
C#
30 lines
866 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using PepperDash.Essentials.Core;
|
|
using PepperDash.Core;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace PepperDash.Essentials.Core.Config
|
|
{
|
|
public class ConfigPropertiesHelpers
|
|
{
|
|
/// <summary>
|
|
/// Returns the value of properties.hasAudio, or false if not defined
|
|
/// </summary>
|
|
public static bool GetHasAudio(DeviceConfig deviceConfig)
|
|
{
|
|
return deviceConfig.Properties.Value<bool>("hasAudio");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the value of properties.hasControls, or false if not defined
|
|
/// </summary>
|
|
public static bool GetHasControls(DeviceConfig deviceConfig)
|
|
{
|
|
return deviceConfig.Properties.Value<bool>("hasControls");
|
|
}
|
|
}
|
|
} |