Class GroupJoinLeaveMessageSerializer<T>
Serializer for group join and leave messages.
Implements
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class GroupJoinLeaveMessageSerializer<T> : DefaultMessageSerializer<T>, IMessageSerializer where T : IWolfMessage
Type Parameters
Name | Description |
---|---|
T | Type of the message. |
Remarks
This special serializer will replace "id" with "groupId" and vice versa (depending on whether sending or receiving the message) to handle inconsistencies within the protocol.
Constructors
| Improve this Doc View SourceGroupJoinLeaveMessageSerializer()
Creates a new serializer instance.
Declaration
public GroupJoinLeaveMessageSerializer()
Methods
| Improve this Doc View SourceDeserialize(String, SerializedMessageData)
Deserializes a message.
Declaration
public override 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. |
Overrides
TehGM.Wolfringo.Messages.Serialization.DefaultMessageSerializer<T>.Deserialize(System.String, TehGM.Wolfringo.Messages.Serialization.SerializedMessageData)
|
Improve this Doc
View Source
Serialize(IWolfMessage)
Serializes a message.
Declaration
public override SerializedMessageData Serialize(IWolfMessage message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | message | Message to serialize. |
Returns
Type | Description |
---|---|
SerializedMessageData | Serialized message data. |
Overrides
TehGM.Wolfringo.Messages.Serialization.DefaultMessageSerializer<T>.Serialize(TehGM.Wolfringo.IWolfMessage)