mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-02 14:24:59 +00:00
UI Applications can now request status for specific feature sets instead of full status for a device. This will hopefully cut down on the traffic and messages required to get the data for the UI.
62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
using PepperDash.Essentials.Core.Config;
|
|
|
|
|
|
namespace PepperDash.Essentials
|
|
{
|
|
/// <summary>
|
|
/// Represents a MobileControlEssentialsConfig
|
|
/// </summary>
|
|
public class MobileControlEssentialsConfig : EssentialsConfig
|
|
{
|
|
[JsonProperty("runtimeInfo")]
|
|
public MobileControlRuntimeInfo RuntimeInfo { get; set; }
|
|
|
|
public MobileControlEssentialsConfig(EssentialsConfig config)
|
|
: base()
|
|
{
|
|
// TODO: Consider using Reflection to iterate properties
|
|
this.Devices = config.Devices;
|
|
this.Info = config.Info;
|
|
this.JoinMaps = config.JoinMaps;
|
|
this.Rooms = config.Rooms;
|
|
this.SourceLists = config.SourceLists;
|
|
this.DestinationLists = config.DestinationLists;
|
|
this.SystemUrl = config.SystemUrl;
|
|
this.TemplateUrl = config.TemplateUrl;
|
|
this.TieLines = config.TieLines;
|
|
|
|
if (this.Info == null)
|
|
this.Info = new InfoConfig();
|
|
|
|
RuntimeInfo = new MobileControlRuntimeInfo();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a MobileControlRuntimeInfo
|
|
/// </summary>
|
|
public class MobileControlRuntimeInfo
|
|
{
|
|
|
|
/// <summary>
|
|
/// Gets or sets the PluginVersion
|
|
/// </summary>
|
|
[JsonProperty("pluginVersion")]
|
|
public string PluginVersion { get; set; }
|
|
|
|
[JsonProperty("essentialsVersion")]
|
|
public string EssentialsVersion { get; set; }
|
|
|
|
[JsonProperty("pepperDashCoreVersion")]
|
|
public string PepperDashCoreVersion { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Gets or sets the EssentialsPlugins
|
|
/// </summary>
|
|
[JsonProperty("essentialsPlugins")]
|
|
public List<LoadedAssembly> EssentialsPlugins { get; set; }
|
|
}
|
|
} |