/// <summary>
 /// Initialize a new <see cref="AbstractActionType"/> with the specified ID, Event Ref, and Data byte array.
 ///  The byte array will be automatically parsed for a <see cref="Page"/>, and a new one will be created if
 ///  the array is empty.
 /// <para>
 /// This is called through reflection by the <see cref="ActionTypeCollection"/> class if a class that
 ///  derives from this type is added to its list.
 /// </para>
 /// <para>
 /// You MUST implement one of these constructors in any class that derives from <see cref="AbstractActionType"/>
 /// </para>
 /// </summary>
 /// <param name="id">The unique ID of this action in HomeSeer</param>
 /// <param name="eventRef">The event reference ID that this action is associated with in HomeSeer</param>
 /// <param name="dataIn">A byte array containing the definition for a <see cref="Page"/></param>
 protected AbstractActionType(int id, int eventRef, byte[] dataIn, ActionTypeCollection.IActionTypeListener listener)
 {
     _id            = id;
     _eventRef      = eventRef;
     _inData        = dataIn;
     ActionListener = listener;
     InflateActionFromData();
 }
Exemple #2
0
 /// <inheritdoc />
 /// <remarks>
 /// All action types must implement this constructor
 /// </remarks>
 public WriteLogSampleActionType(int id, int eventRef, byte[] dataIn, ActionTypeCollection.IActionTypeListener listener, bool logDebug = false) : base(id, eventRef, dataIn, listener, logDebug)
 {
 }