namespace Common.Messaging; public class GenericUserInterfaceMessage : IUserInterfaceMessage { /// /// Description of the Message. Containes messsage text. /// public string Message { get; private set; } /// /// Importance of this message. /// public MessageImportance Importance { get; private set; } public GenericUserInterfaceMessage(string message, MessageImportance importance) { // throw when message is empty if (string.IsNullOrEmpty(message)) { throw new NotImplementedException($"Please provide a valid message for the {nameof(GenericUserInterfaceMessage)}"); } this.Message = message; this.Importance = importance; } public override string ToString() { return this.Message; } }