Package io.ably.lib.types
Class MessageAnnotations.Serializer
java.lang.Object
io.ably.lib.types.MessageAnnotations.Serializer
- All Implemented Interfaces:
-
com.google.gson.JsonDeserializer<MessageAnnotations>,com.google.gson.JsonSerializer<MessageAnnotations>
- Enclosing class:
- MessageAnnotations
public static class MessageAnnotations.Serializer
extends Object
implements com.google.gson.JsonSerializer<MessageAnnotations>, com.google.gson.JsonDeserializer<MessageAnnotations>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementserialize(MessageAnnotations annotations, Type typeOfMessage, com.google.gson.JsonSerializationContext ctx)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(MessageAnnotations annotations, Type typeOfMessage, com.google.gson.JsonSerializationContext ctx) - Specified by:
-
serializein interfacecom.google.gson.JsonSerializer<MessageAnnotations>
-
deserialize
public MessageAnnotations deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
-
deserializein interfacecom.google.gson.JsonDeserializer<MessageAnnotations> - Throws:
com.google.gson.JsonParseException
-