Class TipAddMessageSerializer
Serializer for tipping message.
Implements
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class TipAddMessageSerializer : DefaultMessageSerializer<TipAddMessage>, IMessageSerializer
Remarks
This special serializer moves "context" properties into "context" 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.TipAddMessage>.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.TipAddMessage>.Serialize(TehGM.Wolfringo.IWolfMessage)