public static AdapterInterface CreateHumidity(double currentValue)
{
var iface = new AdapterInterface("org.alljoyn.SmartSpaces.Environment.CurrentHumidity");
//iface.Annotations.Add("org.alljoyn.Bus.DocString.En", "This interface provides capability to represent current relative humidity.");
//iface.Annotations.Add("org.alljoyn.Bus.Secure", "true");
iface.Properties.Add(new AdapterAttribute("Version", (ushort)1) { COVBehavior = SignalBehavior.Never });
iface.Properties[0].Annotations.Add("org.alljoyn.Bus.DocString.En", "The interface version");
iface.Properties.Add(new AdapterAttribute("CurrentValue", currentValue) { COVBehavior = SignalBehavior.Always });
iface.Properties[1].Annotations.Add("org.alljoyn.Bus.DocString.En", "Current relative humidity value");
iface.Properties[1].Annotations.Add("org.alljoyn.Bus.Type.Min", "0");
iface.Properties.Add(new AdapterAttribute("MaxValue", 100d) { COVBehavior = SignalBehavior.Always });
iface.Properties[2].Annotations.Add("org.alljoyn.Bus.DocString.En", "Maximum value allowed for represented relative humidity");
return iface;
}