Class Message
Generic container for messages
Inheritance
System.Object
Message
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DuetAPI.Machine
Assembly: DuetAPI.dll
Syntax
public sealed class Message
Constructors
Message()
Create a new message
Declaration
public Message()
Message(MessageType, String)
Create a new message
Declaration
public Message(MessageType type, string content = "")
Parameters
Type | Name | Description |
---|---|---|
MessageType | type | Message type |
System.String | content | Message content |
Properties
Content
Content of this message
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
May be empty but not null
Time
Time at which the message was generated
Declaration
public DateTime Time { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Type
Type of this message
Declaration
public MessageType Type { get; set; }
Property Value
Type | Description |
---|---|
MessageType |
Methods
ToString()
Converts this message to a RepRapFirmware-style message
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | RepRapFirmware-style message |
Overrides
System.Object.ToString()