/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> /// <param name="sensorType">Type of the sensor or null if no sensor is to /// be created.</param> /// <param name="sensorChannel">If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute" /> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion"> /// A delegate for converting the raw byte /// array into a value (or null to use the attribute value). /// </param> /// <param name="sensorType"> /// Type of the sensor or null if no sensor is to /// be created. /// </param> /// <param name="sensorChannel"> /// If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute. /// </param> /// <param name="sensorName"> /// The name to be used for the sensor, or null if /// no sensor is created. /// </param> /// <param name="defaultHiddenSensor">True to hide the sensor initially.</param> /// <param name="parameterDescriptions"> /// Description for the parameters of the sensor /// (or null). /// </param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel, string sensorName, bool defaultHiddenSensor = false, ParameterDescription[] parameterDescriptions = null) { Identifier = identifier; Name = name; _rawValueConversion = rawValueConversion; SensorType = sensorType; SensorChannel = sensorChannel; SensorName = sensorName; DefaultHiddenSensor = defaultHiddenSensor; ParameterDescriptions = parameterDescriptions; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> /// <param name="sensorType">Type of the sensor or null if no sensor is to /// be created.</param> /// <param name="sensorChannel">If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.</param> /// <param name="defaultHiddenSensor">True to hide the sensor initially.</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel, bool defaultHiddenSensor = false) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; this.DefaultHiddenSensor = defaultHiddenSensor; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> /// <param name="sensorType">Type of the sensor or null if no sensor is to /// be created.</param> /// <param name="sensorChannel">If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.</param> /// <param name="defaultHiddenSensor">True to hide the sensor initially.</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType? sensorType, int sensorChannel, bool defaultHiddenSensor = false) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; this.DefaultHiddenSensor = defaultHiddenSensor; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> /// <param name="sensorType">Type of the sensor or null if no sensor is to /// be created.</param> /// <param name="sensorChannel">If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.</param> /// <param name="defaultHiddenSensor">True to hide the sensor initially.</param> /// <param name="parameterDescriptions">Description for the parameters of the sensor /// (or null).</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType? sensorType, int sensorChannel, bool defaultHiddenSensor = false, ParameterDescription[] parameterDescriptions = null) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; this.DefaultHiddenSensor = defaultHiddenSensor; this.ParameterDescriptions = parameterDescriptions; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> /// <param name="sensorType">Type of the sensor or null if no sensor is to /// be created.</param> /// <param name="sensorChannel">If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.</param> /// <param name="defaultHiddenSensor">True to hide the sensor initially.</param> /// <param name="parameterDescriptions">Description for the parameters of the sensor /// (or null).</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel, bool defaultHiddenSensor, ParameterDescription[] parameterDescriptions) { this.Identifier = identifier; this.Name = name; this.rawValueConversion = rawValueConversion; this.SensorType = sensorType; this.SensorChannel = sensorChannel; this.DefaultHiddenSensor = defaultHiddenSensor; this.ParameterDescriptions = parameterDescriptions; }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion) : this(identifier, name, rawValueConversion, null, 0) { }
/// <summary> /// Initializes a new instance of the <see cref="SmartAttribute"/> class. /// </summary> /// <param name="identifier">The SMART identifier of the attribute.</param> /// <param name="name">The name of the attribute.</param> /// <param name="rawValueConversion">A delegate for converting the raw byte /// array into a value (or null to use the attribute value).</param> public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion) : this(identifier, name, rawValueConversion, null, 0, null) { }
public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType? sensorType, int sensorChannel) : this(identifier, name, rawValueConversion, sensorType, sensorChannel, false, null) { }
public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType? sensorType, int sensorChannel, bool defaultHiddenSensor) : this(identifier, name, rawValueConversion, sensorType, sensorChannel, defaultHiddenSensor, null) { }
public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel) : this(identifier, name, rawValueConversion, sensorType, sensorChannel, false, null) { }
public SmartAttribute(byte identifier, string name, RawValueConversion rawValueConversion, SensorType?sensorType, int sensorChannel, bool defaultHiddenSensor) : this(identifier, name, rawValueConversion, sensorType, sensorChannel, defaultHiddenSensor, null) { }