Class ContactAddDeleteMessageSerializer<T>
Serializer for add and delete contact messages.
Implements
Inherited Members
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class ContactAddDeleteMessageSerializer<T> : DefaultMessageSerializer<T>, IMessageSerializer where T : IWolfMessage
Type Parameters
Name | Description |
---|---|
T | Type of the message. |
Remarks
This special serializer will replace "id" with "targetId" if "targetId" exists to handle inconsistencies within the protocol.
Constructors
| Improve this Doc View SourceContactAddDeleteMessageSerializer()
Creates a new serializer instance.
Declaration
public ContactAddDeleteMessageSerializer()
Exceptions
Type | Condition |
---|---|
InvalidOperationException |
|
Methods
| Improve this Doc View SourceDeserialize(String, SerializedMessageData)
Deserializes a message.
Declaration
public override IWolfMessage Deserialize(string eventName, SerializedMessageData messageData)
Parameters
Type | Name | Description |
---|---|---|
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)