Message

References
[IoId("00000000-5c9b-4a8f-813c-468ba16d9f27")] public sealed class Message : IComparable<Message>, IEquatable<Message>, IStorable
A message associated with an IDocumentObject, typically generated during solutions.

Constructors

Message

#
public Message(
reader
)

Properties

ActionCount

#
Gets the number of actions in this message.
public int ActionCount { get; }

Actions

#
Gets the action to invoke (if any) when this message is triggered by the user.
public IEnumerable<MessageAction> Actions { get; }

Info

#
Gets the in-depth explanation of this message. This may contain several sentences, including definitions of words.
public string Info { get; }

Level

#
Gets the level of this message.
public MessageLevel Level { get; }

Text

#
Gets the text of this message. This is ideally a single sentence containing not too many words.
public string Text { get; }

Valence

#
Gets or sets the valence of this message. This is typically assigned automatically when similar messages are merged, you do not have to assign the valence yourself.
public int Valence { get; set; }

Methods

CompareTo

#
public int CompareTo(
other
)

Equals

#
public bool Equals(
other
)

Equals

#
public override bool Equals(
obj
)
Object.Equals

Error

#
Create an error which automatically expires each solution.
public static Message Error(
text,
info,
params MessageAction[]
actions
)

Error

#
Create an error which automatically expires each solution.
public static Message Error(
text,
info,
params MessageDelegate[]
delegates
)

Error

#
Create an error which automatically expires each solution.
public static Message Error(
text,
info
)

GetHashCode

#
public override int GetHashCode()

Remark

#
Create a remark which automatically expires each solution.
public static Message Remark(
text,
info,
params MessageAction[]
actions
)

Store

#
public void Store(
writer
)
Store

ToString

#
public override string ToString()
Object.ToString

Warning

#
Create a warning which automatically expires each solution.
public static Message Warning(
text,
info,
params MessageAction[]
actions
)

WithActions

#
Add actions to this message.
public Message WithActions(
params MessageAction[]
actions
)

WithoutActions

#
Remove all actions from this message.
public Message WithoutActions()

WithText

#
Replace the text of this message. This is typically used to prepend or append additional information.
public Message WithText(
newText
)