Class DefaultMessageSerializer<T>
Serializer for basic messages that don't have binary data.
Inheritance
System.Object
DefaultMessageSerializer<T>
Implements
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class DefaultMessageSerializer<T> : IMessageSerializer where T : IWolfMessage
Type Parameters
Name | Description |
---|---|
T | Type of message for this serializer. |
Methods
| Improve this Doc View SourceDeserialize(String, SerializedMessageData)
Deserializes a message.
Declaration
public virtual IWolfMessage Deserialize(string eventName, SerializedMessageData messageData)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Message command. |
SerializedMessageData | messageData | Serialized message data. |
Returns
Type | Description |
---|---|
IWolfMessage | Deserialized message. |
Serialize(IWolfMessage)
Serializes a message.
Declaration
public virtual SerializedMessageData Serialize(IWolfMessage message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | message | Message to serialize. |
Returns
Type | Description |
---|---|
SerializedMessageData | Serialized message data. |