using PepperDash.Essentials.Core; namespace PepperDash.Essentials.AppServer.Messengers { /// /// Represents a GenericMessenger /// public class GenericMessenger : MessengerBase { /// /// Initializes a new instance of the class. /// /// The key. /// The device. /// The message path. public GenericMessenger(string key, EssentialsDevice device, string messagePath) : base(key, messagePath, device) { } /// protected override void RegisterActions() { base.RegisterActions(); AddAction("/fullStatus", (id, content) => SendFullStatus(id)); } private void SendFullStatus(string id = null) { var state = new DeviceStateMessageBase(); PostStatusMessage(state, id); } } }