11:05 PM
public abstract class Message { public List<MessageNode> Nodes { get; } public override string ToString() { var sb = new StringBuilder(); foreach (MessageNode node in Nodes) { sb.Append(node.ToString()); } return sb.ToString(); } public abstract string ToFormattedString(); }
I think I like this idea, rather than passing specific properties for whether or not to bold, italicize, change colorus, etc. as this allows the implementing context to determine how to format the message based on it's capabilities, rather than some random stuff some programmer decided.
« first day (6 days earlier) next day → last day (43 days later) »