using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MQTTProcessNotifierLib { public class MonitoredProcess { private string processName; private string topicID; private bool running; public MonitoredProcess(string processName, string topicID, bool running = false) { this.processName = processName; this.topicID = topicID; this.running = running; } public string TopicID { get => topicID; set => topicID = value; } public bool Running { get => running; set => running = value; } public string ProcessName { get => processName; set => processName = value; } public override string ToString() => $"{ProcessName}|{TopicID}|{Running}"; } }