Class ChatHistoryResponseSerializer
Serializer for chat history responses.
Implements
Inherited Members
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class ChatHistoryResponseSerializer : DefaultResponseSerializer, IResponseSerializer
Remarks
This special serializer parses binary messages for all nested chat messages in chat history array.
Constructors
| Improve this Doc View SourceChatHistoryResponseSerializer()
Initializes a new serializer for chat history responses.
Declaration
public ChatHistoryResponseSerializer()
Remarks
This uses default ChatEmbedDeserializer for deserializing embeds.
ChatHistoryResponseSerializer(IChatEmbedDeserializer)
Initializes a new serializer for chat history responses.
Declaration
public ChatHistoryResponseSerializer(IChatEmbedDeserializer chatEmbedDeserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IChatEmbedDeserializer | chatEmbedDeserializer | Deserializer of chat embeds to use. |
Remarks
This special serializer parses binary messages for all nested chat messages in chat history array.
Methods
| Improve this Doc View SourceDeserialize(Type, SerializedMessageData)
Deserialize a server response.
Declaration
public override IWolfResponse Deserialize(Type responseType, SerializedMessageData responseData)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | responseType | Type of the response to deserialize into. |
| SerializedMessageData | responseData | Serialized response data. |
Returns
| Type | Description |
|---|---|
| IWolfResponse | Deserialized response. |
Overrides
Remarks
This special serializer parses binary messages for all nested chat messages in chat history array.
ThrowIfInvalidType(Type)
Throws if response type is not supported by this serializer.
Declaration
protected override void ThrowIfInvalidType(Type responseType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | responseType | Type of the response. |
Overrides
Remarks
This special serializer parses binary messages for all nested chat messages in chat history array.