Updated JoinMetadata to add Description property

Updated Hrxx0WirelessRemoteController to remove references to JoinMetadata

#198
This commit is contained in:
Trevor Payne
2020-05-22 13:56:18 -05:00
parent 469d3b0975
commit 608a9068b9
7 changed files with 108 additions and 52 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Runtime.InteropServices;
using Crestron.SimplSharp.Reflection;
using PepperDash.Core;
@@ -363,8 +364,12 @@ namespace PepperDash.Essentials.Core
/// <summary>
/// A label for the join to better describe it's usage
/// </summary>
[JsonProperty("label")]
public string Label { get; set; }
[Obsolete]
[JsonProperty("label")]
public string Label { get { return Description; } set { Description = value; } }
[JsonProperty("description")]
public string Description { get; set; }
/// <summary>
/// Signal type(s)
/// </summary>
@@ -454,11 +459,13 @@ namespace PepperDash.Essentials.Core
name = attribute.Name;
Debug.Console(2, "JoinName Attribute value: {0}", name);
return name;
}
}
}
}
[AttributeUsage(AttributeTargets.All)]
public class JoinNameAttribute : Attribute
public class JoinNameAttribute : CAttribute
{
private string _Name;
@@ -472,5 +479,5 @@ namespace PepperDash.Essentials.Core
{
get { return _Name; }
}
}
}
}