diff --git a/Arch-topics.md b/Arch-topics.md index 8ae35fc..8d7ec2f 100644 --- a/Arch-topics.md +++ b/Arch-topics.md @@ -129,7 +129,7 @@ This ordering ensures that all devices are at least present before building tie In each device/room step, a device factory process is called. We call subsequent device factory methods in the various libraries that make up Essentials until one of them returns a functional device. This allows us to break up the factory process into individual libraries, and not have a huge master list of types and build procedures. Here's part of the code: -```csharp +```cs // Try local factories first var newDev = DeviceFactory.GetDevice(devConf); diff --git a/JoinMaps.md b/JoinMaps.md index cc317df..0b3b504 100644 --- a/JoinMaps.md +++ b/JoinMaps.md @@ -30,7 +30,7 @@ If the attribute is present, the join data is added to the publically available ### JoinData -```csharp +```cs JoinData() { JoinNumber = 1, JoinSpan = 1 }; ``` @@ -54,7 +54,7 @@ JoinMetadata() { Label = "Reports Online Status", JoinCapabilities = eJoinCapabi ```JoinCapabilities``` is represented by an enum defining the direction that the data is flowing for this join. Appropriate values are: -```csharp +```cs public enum eJoinCapabilities { None = 0, @@ -66,7 +66,7 @@ public enum eJoinCapabilities ```JoinType``` is represented by an enum defining the data type in SIMPL. Appropriate values are: -```csharp +```cs public enum eJoinType { None = 0, @@ -92,7 +92,7 @@ JoinDataComplete(JoinData data, JoinMetadata metadata); This is the join map for ```IBasicCommunication``` Devices -```csharp +```cs namespace PepperDash.Essentials.Core.Bridges { public class IBasicCommunicationJoinMap : JoinMapBaseAdvanced diff --git a/Plugins-Updated.md b/Plugins-Updated.md index 97b1378..d465502 100644 --- a/Plugins-Updated.md +++ b/Plugins-Updated.md @@ -25,7 +25,7 @@ for instantiating each class as defined by type. Note that multiple types can be loaded from the same plugin. -```csharp +```cs using System; using Crestron.SimplSharp; using Crestron.SimplSharpPro; diff --git a/Plugins.md b/Plugins.md index 80bc009..70358c5 100644 --- a/Plugins.md +++ b/Plugins.md @@ -22,7 +22,7 @@ One or more plugins can be loaded to the /user/ProgramX/plugins as .dlls or .cpl All plugin assemblies must contain a static method called LoadPlugin(): -```csharp +```cs public class SomeDevice : Device , IBridge //IBridge only needs to be implemented if using a bridge { // This string is used to define the minimum version of the diff --git a/SIMPL-Bridging-Updated.md b/SIMPL-Bridging-Updated.md index b2dcb5d..fd184ed 100644 --- a/SIMPL-Bridging-Updated.md +++ b/SIMPL-Bridging-Updated.md @@ -145,7 +145,7 @@ Now that our devices have been built, we can refer to the device join maps to se See below: -```csharp +```cs namespace PepperDash.Essentials.Core.Bridges { public class DisplayControllerJoinMap : JoinMapBaseAdvanced @@ -228,7 +228,7 @@ VolumeUp = 5 VolumeDown = 6 VolumeMute = 7 -```csharp +```cs namespace PepperDash.Essentials.Core.Bridges { public class IBasicCommunicationJoinMap : JoinMapBaseAdvanced diff --git a/SIMPL-Bridging.md b/SIMPL-Bridging.md index 37c5710..f102029 100644 --- a/SIMPL-Bridging.md +++ b/SIMPL-Bridging.md @@ -147,7 +147,7 @@ Now that our devices have been built, we can refer to the device join maps to se See below: -```csharp +```cs namespace PepperDash.Essentials.Bridges { public class DisplayControllerJoinMap : JoinMapBase @@ -270,7 +270,7 @@ VolumeUp = 5 VolumeDown = 6 VolumeMute = 7 -```csharp +```cs namespace PepperDash.Essentials.Bridges { public class IBasicCommunicationJoinMap : JoinMapBase