Interface IMessageSerializer
Serializer for serializing and deserializing Wolf messages and events.
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public interface IMessageSerializer
Methods
| Improve this Doc View SourceDeserialize(String, SerializedMessageData)
Deserializes a message.
Declaration
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
SerializedMessageData Serialize(IWolfMessage message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | message | Message to serialize. |
Returns
Type | Description |
---|---|
SerializedMessageData | Serialized message data. |