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()
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.
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
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.
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
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.