Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class ContactAddDeleteMessageSerializer<T>

    Serializer for add and delete contact messages.

    Inheritance
    System.Object
    DefaultMessageSerializer<T>
    ContactAddDeleteMessageSerializer<T>
    Implements
    IMessageSerializer
    Inherited Members
    DefaultMessageSerializer<T>.Serialize(IWolfMessage)
    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 Source

    ContactAddDeleteMessageSerializer()

    Creates a new serializer instance.

    Declaration
    public ContactAddDeleteMessageSerializer()
    Exceptions
    Type Condition
    System.InvalidOperationException

    T is not either ContactAddMessage or ContactDeleteMessage.

    Methods

    | Improve this Doc View Source

    Deserialize(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
    TehGM.Wolfringo.Messages.Serialization.DefaultMessageSerializer<T>.Deserialize(System.String, TehGM.Wolfringo.Messages.Serialization.SerializedMessageData)

    Implements

    IMessageSerializer