Class Message
A useful class for saving type-selective message configurations.
public class Message
- Inheritance
-
Message
- Inherited Members
- Extension Methods
Constructors
Message()
Initializes a new instance of the Message class.
public Message()
Message(string, ushort, bool, MessageType)
Initializes a new instance of the Message class.
public Message(string content, ushort duration = 10, bool show = true, MessageType type = MessageType.Broadcast)
Parameters
contentstringThe content of the message.
durationushortThe duration of the message, in seconds.
showboolWhether the message should be shown.
typeMessageTypeThe type of the message.
Properties
Content
Gets or sets the message content.
public string Content { get; set; }
Property Value
Duration
Gets or sets the message duration.
public ushort Duration { get; set; }
Property Value
Show
Gets or sets a value indicating whether the message should be shown.
public bool Show { get; set; }
Property Value
Type
Gets or sets the message type.
public MessageType Type { get; set; }
Property Value
Methods
ToString()
Returns the Message in a human-readable format.
public override string ToString()
Returns
- string
A string containing Message-related data.