using System; using Newtonsoft.Json.Linq; using PepperDash.Essentials.Core.DeviceTypeInterfaces; namespace PepperDash.Essentials { /// /// Represents a MobileControlAction /// public class MobileControlAction : IMobileControlAction { /// /// Gets the Messenger /// public IMobileControlMessenger Messenger { get; private set; } /// /// Action to execute when this path is matched /// public Action Action { get; private set; } /// /// Initialize an instance of the class /// /// Messenger associated with this action /// Action to take when this path is matched public MobileControlAction(IMobileControlMessenger messenger, Action handler) { Messenger = messenger; Action = handler; } } }