OperationMessage
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Messages
Contains a concrete message
public class OperationMessage
Inheritance Object → OperationMessage
Properties
CreateDateTime
Returns the level
public DateTime CreateDateTime { get; }
Property Value
MessageLevel
Returns the level
public MessageLevel MessageLevel { get; }
Property Value
Location
Returns the location, if any exists
public string Location { get; }
Property Value
MessageNumber
Returns the number
public int MessageNumber { get; }
Property Value
MessageText
Returns a message text
public string MessageText { get; }
Property Value
Parameters
Returns the values of the placeholders of the message text, by placeholder name. This is the
machine-readable contract of a message: tools branch on OperationMessage.MessageNumber and these parameters
(for example the stable reason token of message 133), never on OperationMessage.MessageText, which is
for humans and may be reworded. Empty when the message was created without parameters.
public IReadOnlyDictionary<string, string> Parameters { get; }
Property Value
IReadOnlyDictionary<String, String>
Constructors
OperationMessage(MessageLevel, String, Int32, String)
Constructor
public OperationMessage(MessageLevel messageLevel, string location, int messageNumber, string messageText)
Parameters
messageLevel MessageLevel
Message level
location String
The location, if any exists
messageNumber Int32
Message number
messageText String
Message text
OperationMessage(MessageLevel, String, Int32, String, IReadOnlyDictionary<String, String>)
Constructor
public OperationMessage(MessageLevel messageLevel, string location, int messageNumber, string messageText, IReadOnlyDictionary<string, string> parameters)
Parameters
messageLevel MessageLevel
Message level
location String
The location, if any exists
messageNumber Int32
Message number
messageText String
Message text
parameters IReadOnlyDictionary<String, String>
The values of the placeholders of the message, by placeholder name
Methods
ToString()
public string ToString()