Class TextMessagePacket
Class that represents a text message packet.
Inheritance
System.Object
TextMessagePacket
Implements
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)
System.Object.ToString()
Namespace: Fibula.Communications.Packets.Outgoing
Assembly: Fibula.Communications.Packets.dll
Syntax
public class TextMessagePacket : IOutboundPacket
Constructors
| Improve this Doc View SourceTextMessagePacket(MessageType, String)
Initializes a new instance of the TextMessagePacket class.
Declaration
public TextMessagePacket(MessageType type, string message)
Parameters
Type | Name | Description |
---|---|---|
MessageType | type | The messsage type. |
System.String | message | The message. |
Properties
| Improve this Doc View SourceMessage
Gets the message contents.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
PacketType
Gets the type of this packet.
Declaration
public OutgoingPacketType PacketType { get; }
Property Value
Type | Description |
---|---|
OutgoingPacketType |
Type
Gets the message type.
Declaration
public MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageType |