Changes to Code Block Decorators

Trevor Payne
2020-05-12 15:49:57 -05:00
parent fce78e2022
commit 841eee531f
6 changed files with 11 additions and 11 deletions

@@ -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);

@@ -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

@@ -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;

@@ -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

@@ -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

@@ -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