Class WriteMessage
Write an arbitrary generic message
[RequiredPermissions(SbcPermissions.CommandExecution|SbcPermissions.ObjectModelReadWrite)]
public class WriteMessage : Command
- Inheritance
-
WriteMessage
- Derived
- Inherited Members
Remarks
If neither OutputMessage is true, the message is written to the console output
Constructors
WriteMessage()
public WriteMessage()
Properties
Content
Content of the message to write
public string Content { get; set; }
Property Value
LogLevel
Log level of this message
public EventLogLevel? LogLevel { get; set; }
Property Value
OutputMessage
Output the message on the console and via the object model
public bool OutputMessage { get; set; }
Property Value
Type
Type of the message to write
public MessageType Type { get; set; }
Property Value
Methods
UpdateFromJson(JsonElement)
Update this instance from a given JSON element
public override void UpdateFromJson(JsonElement jsonElement)
Parameters
jsonElementJsonElementElement to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader)
Update this instance from a given JSON element
public override void UpdateFromJsonReader(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReaderReader to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data