chore: move all files to file-scoped namespace

This commit is contained in:
Andrew Welker 2025-07-04 16:02:32 -05:00
parent 8b873b7248
commit 6d2cd75cbe
552 changed files with 46137 additions and 46725 deletions

View file

@ -8,8 +8,8 @@ using Crestron.SimplSharp;
using PepperDash.Core;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Defines the string event handler for line events on the gather
/// </summary>
@ -176,4 +176,3 @@ namespace PepperDash.Core
Stop();
}
}
}

View file

@ -5,8 +5,8 @@ using System.Text;
using Crestron.SimplSharp;
using PepperDash.Core;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Controls the ability to disable/enable debugging of TX/RX data sent to/from a device with a built in timer to disable
/// </summary>
@ -174,4 +174,3 @@ namespace PepperDash.Core
/// </summary>
Both = Bytes | Text,
}
}

View file

@ -3,8 +3,8 @@ using Crestron.SimplSharp;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Config properties that indicate how to communicate with a device for control
/// </summary>
@ -90,4 +90,3 @@ namespace PepperDash.Core
{
}
}
}

View file

@ -16,8 +16,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Delegate for notifying of socket status changes
/// </summary>
@ -246,6 +246,3 @@ namespace PepperDash.Core
}
}

View file

@ -7,8 +7,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// A class to handle secure TCP/IP communications with a server
/// </summary>
@ -951,5 +951,3 @@ namespace PepperDash.Core
}
#endregion
}
}

View file

@ -19,8 +19,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Generic secure TCP/IP client for server
/// </summary>
@ -905,5 +905,3 @@ namespace PepperDash.Core
}
#endregion
}
}

View file

@ -17,8 +17,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Generic secure TCP/IP server
/// </summary>
@ -1081,4 +1081,3 @@ namespace PepperDash.Core
}
#endregion
}
}

View file

@ -8,8 +8,8 @@ using PepperDash.Core.Logging;
using Renci.SshNet;
using Renci.SshNet.Common;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
///
/// </summary>
@ -589,4 +589,3 @@ public class SshConnectionChangeEventArgs : EventArgs
Client = client;
}
}
}

View file

@ -6,8 +6,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using Newtonsoft.Json;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// A class to handle basic TCP/IP communications with a server
/// </summary>
@ -562,5 +562,3 @@ namespace PepperDash.Core
}
}
}

View file

@ -19,8 +19,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Generic TCP/IP client for server
/// </summary>
@ -771,5 +771,3 @@ namespace PepperDash.Core
}
#endregion
}
}

View file

@ -17,8 +17,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronSockets;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Generic TCP/IP server device
/// </summary>
@ -1008,4 +1008,3 @@ namespace PepperDash.Core
}
#endregion
}
}

View file

@ -8,8 +8,8 @@ using Crestron.SimplSharp.CrestronSockets;
using Newtonsoft.Json;
using PepperDash.Core.Logging;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Generic UDP Server device
/// </summary>
@ -393,4 +393,3 @@ namespace PepperDash.Core
BufferSize = 32768;
}
}
}

View file

@ -1,7 +1,7 @@
using Newtonsoft.Json;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Client config object for TCP client with server that inherits from TcpSshPropertiesConfig and adds properties for shared key and heartbeat
/// </summary>
@ -56,4 +56,3 @@ namespace PepperDash.Core
[JsonProperty("receiveQueueSize")]
public int ReceiveQueueSize { get; set; }
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Tcp Server Config object with properties for a tcp server with shared key and heartbeat capabilities
/// </summary>
@ -57,4 +57,3 @@ namespace PepperDash.Core
/// </summary>
public int ReceiveQueueSize { get; set; }
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Crestron Control Methods for a comm object
/// </summary>
@ -76,4 +76,3 @@ namespace PepperDash.Core
/// </summary>
SecureTcpIp
}
}

View file

@ -7,8 +7,8 @@ using Crestron.SimplSharp.CrestronSockets;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// An incoming communication stream
/// </summary>
@ -244,4 +244,3 @@ namespace PepperDash.Core
return Regex.Replace(text, @"[^\u0020-\u007E]", a => GetEscapedText(a.Value));
}
}
}

View file

@ -7,8 +7,8 @@ using Newtonsoft.Json.Linq;
using PepperDash.Core;
using Serilog.Events;
namespace PepperDash.Core.Config
{
namespace PepperDash.Core.Config;
/// <summary>
/// Reads a Portal formatted config file
/// </summary>
@ -232,4 +232,3 @@ namespace PepperDash.Core.Config
return o1;
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core
{
namespace PepperDash.Core;
public class EncodingHelper
{
public static string ConvertUtf8ToAscii(string utf8String)
@ -19,4 +19,3 @@ namespace PepperDash.Core
}
}
}

View file

@ -6,8 +6,8 @@ using Crestron.SimplSharp;
using Newtonsoft.Json;
using Serilog;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Unique key interface to require a unique key for the class
/// </summary>
@ -31,5 +31,3 @@ namespace PepperDash.Core
[JsonProperty("name")]
string Name { get; }
}
}

View file

@ -2,8 +2,8 @@
using System.Collections.Generic;
using Serilog.Events;
namespace PepperDash.Core
{
namespace PepperDash.Core;
//*********************************************************************************************************
/// <summary>
/// The core event and status-bearing class that most if not all device and connectors can derive from.
@ -189,4 +189,3 @@ namespace PepperDash.Core
return string.Format("{0} - {1}", Key, string.IsNullOrEmpty(Name) ? "---" : Name);
}
}
}

View file

@ -2,8 +2,8 @@
using Newtonsoft.Json;
using Serilog.Events;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Class to help with accessing values from the CrestronEthernetHelper class
/// </summary>
@ -114,4 +114,3 @@ namespace PepperDash.Core
}
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Bool change event args
/// </summary>
@ -169,4 +169,3 @@ namespace PepperDash.Core
Index = index;
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.GenericRESTfulCommunications
{
namespace PepperDash.Core.GenericRESTfulCommunications;
/// <summary>
/// Constants
/// </summary>
@ -36,4 +36,3 @@ namespace PepperDash.Core.GenericRESTfulCommunications
/// </summary>
public const ushort ErrorStringChange = 203;
}
}

View file

@ -6,8 +6,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.Net.Http;
using Crestron.SimplSharp.Net.Https;
namespace PepperDash.Core.GenericRESTfulCommunications
{
namespace PepperDash.Core.GenericRESTfulCommunications;
/// <summary>
/// Generic RESTful communication class
/// </summary>
@ -253,4 +253,3 @@ namespace PepperDash.Core.GenericRESTfulCommunications
}
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.JsonStandardObjects
{
namespace PepperDash.Core.JsonStandardObjects;
/// <summary>
/// Constants for simpl modules
/// </summary>
@ -74,4 +74,3 @@ namespace PepperDash.Core.JsonStandardObjects
Index = index;
}
}
}

View file

@ -4,8 +4,8 @@ using Crestron.SimplSharp;
using PepperDash.Core.JsonToSimpl;
using Serilog.Events;
namespace PepperDash.Core.JsonStandardObjects
{
namespace PepperDash.Core.JsonStandardObjects;
/// <summary>
/// Device class
/// </summary>
@ -180,4 +180,3 @@ namespace PepperDash.Core.JsonStandardObjects
#endregion EventHandler Helpers
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.JsonStandardObjects
{
namespace PepperDash.Core.JsonStandardObjects;
/*
Convert JSON snippt to C#: http://json2csharp.com/#
@ -254,4 +254,3 @@ namespace PepperDash.Core.JsonStandardObjects
/// </summary>
public List<DeviceConfig> devices { get; set; }
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Constants for Simpl modules
/// </summary>
@ -140,4 +140,3 @@ namespace PepperDash.Core.JsonToSimpl
/// </summary>
String
}
}

View file

@ -7,8 +7,8 @@ using Serilog.Events;
//using PepperDash.Core;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// The global class to manage all the instances of JsonToSimplMaster
/// </summary>
@ -57,4 +57,3 @@ namespace PepperDash.Core.JsonToSimpl
return Masters.FirstOrDefault(m => m.UniqueID.Equals(file, StringComparison.OrdinalIgnoreCase));
}
}
}

View file

@ -3,8 +3,8 @@ using System.Linq;
using Newtonsoft.Json.Linq;
using Serilog.Events;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Used to interact with an array of values with the S+ modules
/// </summary>
@ -159,4 +159,3 @@ namespace PepperDash.Core.JsonToSimpl
return false;
}
}
}

View file

@ -3,8 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Base class for JSON objects
/// </summary>
@ -401,4 +401,3 @@ namespace PepperDash.Core.JsonToSimpl
}
}
}
}

View file

@ -7,8 +7,8 @@ using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronIO;
using Newtonsoft.Json.Linq;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Represents a JSON file that can be read and written to
/// </summary>
@ -286,4 +286,3 @@ namespace PepperDash.Core.JsonToSimpl
}
}
}
}

View file

@ -1,7 +1,7 @@

namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
///
/// </summary>
@ -15,4 +15,3 @@ namespace PepperDash.Core.JsonToSimpl
this.LinkedToObject = true;
}
}
}

View file

@ -3,8 +3,8 @@ using System.Collections.Generic;
using Crestron.SimplSharp;
using Newtonsoft.Json.Linq;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Generic Master
/// </summary>
@ -115,4 +115,3 @@ namespace PepperDash.Core.JsonToSimpl
Debug.Console(0, this, "WARNING: No save callback defined.");
}
}
}

View file

@ -5,8 +5,8 @@ using Crestron.SimplSharp;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Abstract base class for JsonToSimpl interactions
/// </summary>
@ -236,4 +236,3 @@ namespace PepperDash.Core.JsonToSimpl
}
}
}
}

View file

@ -6,8 +6,8 @@ using Crestron.SimplSharp.CrestronIO;
using Newtonsoft.Json.Linq;
using PepperDash.Core.Config;
namespace PepperDash.Core.JsonToSimpl
{
namespace PepperDash.Core.JsonToSimpl;
/// <summary>
/// Portal File Master
/// </summary>
@ -188,4 +188,3 @@ namespace PepperDash.Core.JsonToSimpl
}
}
}
}

View file

@ -7,8 +7,8 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PepperDash.Core.Logging
{
namespace PepperDash.Core.Logging;
public class CrestronEnricher : ILogEventEnricher
{
static readonly string _appName;
@ -34,4 +34,3 @@ namespace PepperDash.Core.Logging
logEvent.AddOrUpdateProperty(property);
}
}
}

View file

@ -16,8 +16,8 @@ using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Contains debug commands for use in various situations
/// </summary>
@ -1025,4 +1025,3 @@ namespace PepperDash.Core
None,
}
}
}

View file

@ -9,8 +9,8 @@ using System.IO;
using System.Text;
namespace PepperDash.Core
{
namespace PepperDash.Core;
public class DebugConsoleSink : ILogEventSink
{
private readonly ITextFormatter _textFormatter;
@ -51,5 +51,3 @@ namespace PepperDash.Core
return loggerConfiguration.Sink(new DebugConsoleSink(formatProvider));
}
}
}

View file

@ -6,8 +6,8 @@ using Crestron.SimplSharp.CrestronIO;
using Newtonsoft.Json;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Represents a debugging context
/// </summary>
@ -278,4 +278,3 @@ namespace PepperDash.Core
/// </summary>
public int Level { get; set; }
}
}

View file

@ -3,8 +3,8 @@ using Crestron.SimplSharp.CrestronLogger;
using Serilog.Core;
using Serilog.Events;
namespace PepperDash.Core.Logging
{
namespace PepperDash.Core.Logging;
public class DebugCrestronLoggerSink : ILogEventSink
{
public void Emit(LogEvent logEvent)
@ -26,4 +26,3 @@ namespace PepperDash.Core.Logging
CrestronLogger.Initialize(1, LoggerModeEnum.RM);
}
}
}

View file

@ -9,8 +9,8 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PepperDash.Core.Logging
{
namespace PepperDash.Core.Logging;
public class DebugErrorLogSink : ILogEventSink
{
private ITextFormatter _formatter;
@ -62,4 +62,3 @@ namespace PepperDash.Core.Logging
_formatter = formatter;
}
}
}

View file

@ -2,8 +2,8 @@
using System;
using Log = PepperDash.Core.Debug;
namespace PepperDash.Core.Logging
{
namespace PepperDash.Core.Logging;
public static class DebugExtensions
{
public static void LogException(this IKeyed device, Exception ex, string message, params object[] args)
@ -71,4 +71,3 @@ namespace PepperDash.Core.Logging
Log.LogMessage(LogEventLevel.Fatal, device, message, args);
}
}
}

View file

@ -2,8 +2,8 @@
using Crestron.SimplSharp;
using Newtonsoft.Json;
namespace PepperDash.Core.Logging
{
namespace PepperDash.Core.Logging;
/// <summary>
/// Class to persist current Debug settings across program restarts
/// </summary>
@ -112,4 +112,3 @@ namespace PepperDash.Core.Logging
[JsonProperty("doNotLoadOnNextBoot")]
public bool DoNotLoadOnNextBoot { get; set; }
}
}

View file

@ -13,8 +13,8 @@ using WebSocketSharp;
using WebSocketSharp.Server;
using X509Certificate2 = System.Security.Cryptography.X509Certificates.X509Certificate2;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Provides a WebSocket-based logging sink for debugging purposes, allowing log events to be broadcast to connected
/// WebSocket clients.
@ -328,4 +328,3 @@ namespace PepperDash.Core
Debug.Console(2, Debug.ErrorLogLevel.Notice, "WebSocket UiClient Error: {0} message: {1}", e.Exception, e.Message);
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Not in use
/// </summary>
@ -18,5 +18,3 @@ namespace PepperDash.Core
{
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.PasswordManagement
{
namespace PepperDash.Core.PasswordManagement;
/// <summary>
/// JSON password configuration
/// </summary>
@ -23,4 +23,3 @@ namespace PepperDash.Core.PasswordManagement
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.PasswordManagement
{
namespace PepperDash.Core.PasswordManagement;
/// <summary>
/// Constants
/// </summary>
@ -54,4 +54,3 @@ namespace PepperDash.Core.PasswordManagement
/// </summary>
public const ushort StringValueChange = 201;
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Core.PasswordManagement
{
namespace PepperDash.Core.PasswordManagement;
/// <summary>
/// A class to allow user interaction with the PasswordManager
/// </summary>
@ -184,4 +184,3 @@ namespace PepperDash.Core.PasswordManagement
}
}
}
}

View file

@ -2,8 +2,8 @@
using System.Collections.Generic;
using Crestron.SimplSharp;
namespace PepperDash.Core.PasswordManagement
{
namespace PepperDash.Core.PasswordManagement;
/// <summary>
/// Allows passwords to be stored and managed
/// </summary>
@ -238,4 +238,3 @@ namespace PepperDash.Core.PasswordManagement
}
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.SystemInfo
{
namespace PepperDash.Core.SystemInfo;
/// <summary>
/// Constants
/// </summary>
@ -261,4 +261,3 @@ namespace PepperDash.Core.SystemInfo
Index = index;
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.SystemInfo
{
namespace PepperDash.Core.SystemInfo;
/// <summary>
/// Processor info class
/// </summary>
@ -201,4 +201,3 @@ namespace PepperDash.Core.SystemInfo
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.SystemInfo
{
namespace PepperDash.Core.SystemInfo;
/// <summary>
/// System Info class
/// </summary>
@ -459,4 +459,3 @@ namespace PepperDash.Core.SystemInfo
}
}
}
}

View file

@ -20,8 +20,8 @@ using Org.BouncyCastle.Crypto.Operators;
using BigInteger = Org.BouncyCastle.Math.BigInteger;
using X509Certificate = Org.BouncyCastle.X509.X509Certificate;
namespace PepperDash.Core
{
namespace PepperDash.Core;
/// <summary>
/// Taken From https://github.com/rlipscombe/bouncy-castle-csharp/
/// </summary>
@ -353,4 +353,3 @@ namespace PepperDash.Core
return bRet;
}
}
}

View file

@ -1,7 +1,7 @@
using Crestron.SimplSharp.WebScripting;
namespace PepperDash.Core.Web.RequestHandlers
{
namespace PepperDash.Core.Web.RequestHandlers;
/// <summary>
/// Web API default request handler
/// </summary>
@ -14,4 +14,3 @@ namespace PepperDash.Core.Web.RequestHandlers
: base(true)
{ }
}
}

View file

@ -3,8 +3,8 @@ using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace PepperDash.Core.Web.RequestHandlers
{
namespace PepperDash.Core.Web.RequestHandlers;
public abstract class WebApiBaseRequestAsyncHandler:IHttpCwsHandler
{
private readonly Dictionary<string, Func<HttpCwsContext, Task>> _handlers;
@ -160,4 +160,3 @@ namespace PepperDash.Core.Web.RequestHandlers
handlerTask.GetAwaiter().GetResult();
}
}
}

View file

@ -2,8 +2,8 @@
using System.Collections.Generic;
using Crestron.SimplSharp.WebScripting;
namespace PepperDash.Core.Web.RequestHandlers
{
namespace PepperDash.Core.Web.RequestHandlers;
/// <summary>
/// CWS Base Handler, implements IHttpCwsHandler
/// </summary>
@ -162,4 +162,3 @@ namespace PepperDash.Core.Web.RequestHandlers
handler(context);
}
}
}

View file

@ -7,8 +7,8 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PepperDash.Core.Web.RequestHandlers;
namespace PepperDash.Core.Web
{
namespace PepperDash.Core.Web;
/// <summary>
/// Web API server
/// </summary>
@ -281,4 +281,3 @@ namespace PepperDash.Core.Web
}
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Core.WebApi.Presets
{
namespace PepperDash.Core.WebApi.Presets;
/// <summary>
/// Represents a preset
/// </summary>
@ -84,4 +84,3 @@ namespace PepperDash.Core.WebApi.Presets
Preset = preset;
}
}
}

View file

@ -4,8 +4,8 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Core.WebApi.Presets
{
namespace PepperDash.Core.WebApi.Presets;
/// <summary>
///
/// </summary>
@ -90,4 +90,3 @@ namespace PepperDash.Core.WebApi.Presets
/// </summary>
public int PresetNumber { get; set; }
}
}

View file

@ -8,8 +8,8 @@ using Newtonsoft.Json.Linq;
using PepperDash.Core.JsonToSimpl;
namespace PepperDash.Core.WebApi.Presets
{
namespace PepperDash.Core.WebApi.Presets;
/// <summary>
/// Passcode client for the WebApi
/// </summary>
@ -270,4 +270,3 @@ namespace PepperDash.Core.WebApi.Presets
}
}
}
}

View file

@ -1,8 +1,8 @@
using System.Collections.Generic;
using PepperDash.Core.Intersystem.Tokens;
namespace PepperDash.Core.Intersystem.Serialization
{
namespace PepperDash.Core.Intersystem.Serialization;
/// <summary>
/// Interface to determine XSig serialization for an object.
/// </summary>
@ -22,4 +22,3 @@ namespace PepperDash.Core.Intersystem.Serialization
/// <returns></returns>
T Deserialize<T>(IEnumerable<XSigToken> tokens) where T : class, IXSigSerialization;
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Core.Intersystem.Serialization
{
namespace PepperDash.Core.Intersystem.Serialization;
/// <summary>
/// Class to handle this specific exception type
/// </summary>
@ -25,4 +25,3 @@ namespace PepperDash.Core.Intersystem.Serialization
/// <param name="inner"></param>
public XSigSerializationException(string message, Exception inner) : base(message, inner) { }
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Core.Intersystem.Tokens
{
namespace PepperDash.Core.Intersystem.Tokens;
/// <summary>
/// Represents an XSigAnalogToken
/// </summary>
@ -85,4 +85,3 @@ namespace PepperDash.Core.Intersystem.Tokens
return Value.ToString(format, formatProvider);
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Core.Intersystem.Tokens
{
namespace PepperDash.Core.Intersystem.Tokens;
/// <summary>
/// Represents an XSigDigitalToken
/// </summary>
@ -82,4 +82,3 @@ namespace PepperDash.Core.Intersystem.Tokens
return Value.ToString(formatProvider);
}
}
}

View file

@ -1,8 +1,8 @@
using System;
using System.Text;
namespace PepperDash.Core.Intersystem.Tokens
{
namespace PepperDash.Core.Intersystem.Tokens;
/// <summary>
/// Represents an XSigSerialToken
/// </summary>
@ -78,4 +78,3 @@ namespace PepperDash.Core.Intersystem.Tokens
return Index + " = \"" + Value + "\"";
}
}
}

View file

@ -1,5 +1,5 @@
namespace PepperDash.Core.Intersystem.Tokens
{
namespace PepperDash.Core.Intersystem.Tokens;
/// <summary>
/// Represents the base class for all XSig datatypes.
/// </summary>
@ -42,4 +42,3 @@ namespace PepperDash.Core.Intersystem.Tokens
/// <returns>XSigToken</returns>
public abstract XSigToken GetTokenWithOffset(int offset);
}
}

View file

@ -1,5 +1,5 @@
namespace PepperDash.Core.Intersystem.Tokens
{
namespace PepperDash.Core.Intersystem.Tokens;
/// <summary>
/// XSig token types.
/// </summary>
@ -20,4 +20,3 @@ namespace PepperDash.Core.Intersystem.Tokens
/// </summary>
Serial
}
}

View file

@ -18,8 +18,8 @@ using PepperDash.Core.Intersystem.Tokens;
11111111 <- denotes end of data
*/
namespace PepperDash.Core.Intersystem
{
namespace PepperDash.Core.Intersystem;
/// <summary>
/// Helper methods for creating XSig byte sequences compatible with the Intersystem Communications (ISC) symbol.
/// </summary>
@ -236,4 +236,3 @@ namespace PepperDash.Core.Intersystem
return bytes;
}
}
}

View file

@ -4,8 +4,8 @@ using Crestron.SimplSharp.CrestronIO;
using PepperDash.Core.Intersystem.Serialization;
using PepperDash.Core.Intersystem.Tokens;
namespace PepperDash.Core.Intersystem
{
namespace PepperDash.Core.Intersystem;
/// <summary>
/// XSigToken stream reader.
/// </summary>
@ -144,4 +144,3 @@ namespace PepperDash.Core.Intersystem
_stream.Dispose();
}
}
}

View file

@ -5,8 +5,8 @@ using Crestron.SimplSharp.CrestronIO;
using PepperDash.Core.Intersystem.Serialization;
using PepperDash.Core.Intersystem.Tokens;
namespace PepperDash.Core.Intersystem
{
namespace PepperDash.Core.Intersystem;
/// <summary>
/// XSigToken stream writer.
/// </summary>
@ -133,4 +133,3 @@ namespace PepperDash.Core.Intersystem
_stream.Dispose();
}
}
}

View file

@ -16,8 +16,8 @@ using Serilog.Events;
//using PepperDash.Essentials.Devices.Common.Cameras;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
/// <summary>
/// Base class for bridge API variants
/// </summary>
@ -421,5 +421,3 @@ namespace PepperDash.Essentials.Core.Bridges
return new EiscApiAdvanced(dc, eisc);
}
}
}

View file

@ -3,8 +3,8 @@ using Serilog.Events;
//using PepperDash.Essentials.Devices.Common.Cameras;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
/// <summary>
/// Helper methods for bridges
/// </summary>
@ -62,5 +62,3 @@ namespace PepperDash.Essentials.Core.Bridges
}
}
}
}

View file

@ -1,7 +1,7 @@
using Crestron.SimplSharpPro.DeviceSupport;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
/// <summary>
/// Defines a device that uses JoinMapBaseAdvanced for its join map
/// </summary>
@ -9,4 +9,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge);
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class AirMediaControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("IsOnline")]
@ -68,4 +68,3 @@ namespace PepperDash.Essentials.Core.Bridges
/// <param name="type">Type of the child join map</param>
protected AirMediaControllerJoinMap(uint joinStart, Type type) : base(joinStart, type){}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class AppleTvJoinMap : JoinMapBaseAdvanced
{
[JoinName("UpArrow")]
@ -50,4 +50,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class C2nRthsControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("IsOnline")]
@ -42,4 +42,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
/// <summary>
/// Join map for CameraBase devices
/// </summary>
@ -66,4 +66,3 @@ namespace PepperDash.Essentials.Core.Bridges
/// <param name="type">Type of the child join map</param>
protected CameraControllerJoinMap(uint joinStart, Type type) : base(joinStart, type){}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class CenOdtOccupancySensorBaseJoinMap : JoinMapBaseAdvanced
{
#region Digitals
@ -194,5 +194,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DisplayControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("Name")]
@ -82,4 +82,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,6 +1,6 @@
using System;
namespace PepperDash.Essentials.Core.Bridges {
namespace PepperDash.Essentials.Core.Bridges;
public class DmBladeChassisControllerJoinMap : JoinMapBaseAdvanced {
[JoinName("IsOnline")]
@ -71,4 +71,3 @@ namespace PepperDash.Essentials.Core.Bridges {
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmChassisControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("EnableAudioBreakaway")]
@ -167,4 +167,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmRmcControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("IsOnline")]
@ -89,4 +89,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmTxControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("IsOnline")]
@ -93,4 +93,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmpsAudioOutputControllerJoinMap : JoinMapBaseAdvanced
{
@ -171,4 +171,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmpsMicrophoneControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("MicGain")]
@ -47,4 +47,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class DmpsRoutingControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("EnableRouting")]
@ -120,4 +120,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using PepperDash.Essentials.Core;
namespace PepperDash.Essentials.Core.Bridges.JoinMaps
{
namespace PepperDash.Essentials.Core.Bridges.JoinMaps;
public sealed class GenericIrControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("PLAY")]
@ -824,4 +824,3 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
{
}
}
}

View file

@ -1,8 +1,8 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class GenericLightingJoinMap : JoinMapBaseAdvanced
{
@ -46,4 +46,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class GenericRelayControllerJoinMap : JoinMapBaseAdvanced
{
@ -28,4 +28,3 @@ namespace PepperDash.Essentials.Core.Bridges
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class GlsOccupancySensorBaseJoinMap : JoinMapBaseAdvanced
{
[JoinName("IsOnline")]
@ -181,4 +181,4 @@ namespace PepperDash.Essentials.Core.Bridges
}
}
}

View file

@ -1,8 +1,8 @@
using System;
using PepperDash.Essentials.Core;
namespace PepperDash.Essentials.Core.Bridges.JoinMaps
{
namespace PepperDash.Essentials.Core.Bridges.JoinMaps;
public class GlsPartitionSensorJoinMap : JoinMapBaseAdvanced
{
@ -154,4 +154,3 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class HdMdNxM4kEControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("Name")]
@ -63,4 +63,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class HdMdxxxCEControllerJoinMap : JoinMapBaseAdvanced
{
@ -73,4 +73,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,8 +1,8 @@
using System;
using PepperDash.Essentials.Core;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class HdPsXxxControllerJoinMap : JoinMapBaseAdvanced
{
@ -187,4 +187,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class Hrxxx0WirelessRemoteControllerJoinMap : JoinMapBaseAdvanced
{
[JoinName("Power")]
@ -243,4 +243,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class IAnalogInputJoinMap : JoinMapBaseAdvanced
{
@ -31,4 +31,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class IBasicCommunicationJoinMap : JoinMapBaseAdvanced
{
[JoinName("TextReceived")]
@ -47,4 +47,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class IDigitalInputJoinMap : JoinMapBaseAdvanced
{
@ -28,4 +28,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

View file

@ -1,7 +1,7 @@
using System;
namespace PepperDash.Essentials.Core.Bridges
{
namespace PepperDash.Essentials.Core.Bridges;
public class IDigitalOutputJoinMap : JoinMapBaseAdvanced
{
@ -28,4 +28,3 @@ namespace PepperDash.Essentials.Core.Bridges
{
}
}
}

Some files were not shown because too many files have changed in this diff Show more