Package org.oddjob.websocket
Class NotificationDeserializer
java.lang.Object
org.oddjob.websocket.NotificationDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Notification<?>>
public class NotificationDeserializer
extends Object
implements com.google.gson.JsonDeserializer<Notification<?>>
Gson deserializer for
Notifications.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNotification<?> deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
-
Field Details
-
TYPE
- See Also:
-
SEQUENCE
- See Also:
-
REMOTE_ID
- See Also:
-
DATA
- See Also:
-
-
Constructor Details
-
NotificationDeserializer
public NotificationDeserializer()
-
-
Method Details
-
deserialize
public Notification<?> 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<Notification<?>>- Throws:
com.google.gson.JsonParseException
-