com.tumblr.jumblr.responses
Class PostDeserializer
java.lang.Object
com.tumblr.jumblr.responses.PostDeserializer
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<Object>
public class PostDeserializer
- extends Object
- implements com.google.gson.JsonDeserializer<Object>
Posts come back to us as a collection, so this Deserializer is here
to make it so that the collection consists of the proper subclasses
of Post (ie: QuotePost, PhotoPost)
- Author:
- jc
|
Method Summary |
Object |
deserialize(com.google.gson.JsonElement je,
Type type,
com.google.gson.JsonDeserializationContext jdc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostDeserializer
public PostDeserializer()
deserialize
public Object deserialize(com.google.gson.JsonElement je,
Type type,
com.google.gson.JsonDeserializationContext jdc)
throws com.google.gson.JsonParseException
- Specified by:
deserialize in interface com.google.gson.JsonDeserializer<Object>
- Throws:
com.google.gson.JsonParseException
Copyright © 2013. All Rights Reserved.