Class ChatUpdateMessageSerializer
Serializer for chat message edit message, such as message deletion.
Implements
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class ChatUpdateMessageSerializer : DefaultMessageSerializer<ChatUpdateMessage>, IMessageSerializer
Remarks
This special serializer moves "metadata" properties into "metadata" object to match 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 |
---|---|---|
String | eventName | Message command. |
SerializedMessageData | messageData | Serialized message data. |
Returns
Type | Description |
---|---|
IWolfMessage | Deserialized message. |
Overrides
TehGM.Wolfringo.Messages.Serialization.DefaultMessageSerializer<TehGM.Wolfringo.Messages.ChatUpdateMessage>.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<TehGM.Wolfringo.Messages.ChatUpdateMessage>.Serialize(TehGM.Wolfringo.IWolfMessage)