List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file ca.ualberta.cmput301w14t08.geochan.json.CommentOfflineJsonConverter.java
/**
* Handles the offline serialization and deserialization of Comment objects
* to and from JSON format.
*
* @author Artem Chikin
* @author Artem Herasymchuk
From source file ca.ualberta.cmput301w14t08.geochan.json.LocationJsonConverter.java
/**
* Handles the serialization and deserialization of useful data in a Location
* to and from JSON format.
*
* @author Artem Chikin
*/
From source file ca.ualberta.cmput301w14t08.geochan.json.ThreadCommentJsonConverter.java
/** * Handles the serialization of a ThreadComment object into JSON format. * * @author Artem Herasymchuk */ public class ThreadCommentJsonConverter implements JsonSerializer<ThreadComment>, JsonDeserializer<ThreadComment> {
From source file ca.ualberta.cmput301w14t08.geochan.json.ThreadCommentOfflineJsonConverter.java
/**
* Handles the serialization of a ThreadComment object into JSON format for
* offline caching.
*
* @author Artem Chikin
* @author Artem Herasymchuk
From source file ca.ualberta.CMPUT301W15T06.GsonAdapter.java
/**
* This is an adapter class for <code>Gson</code>, as a subclass of <code>JsonSerializer</code>
* and <code>JsonDeserializer</code>. This class is design to let the application use the Gson library.
*
* @author CMPUT301W15T06
* @see com.google.gson.JsonDeserializationContext
From source file ca.ualberta.cs.drivr.UriSerializer.java
/**
* A class to use with Gson for serializing/deserializing Uris.
* <ul>
* <li>URL: http://stackoverflow.com/a/27704368</li>
* <li>Author: Marco Bonechi</li>
* <li>Accessed: November 9, 2016</li>
From source file ca.ualberta.cs.scandaloutraveltracker.mappers.UserMapper.java
/** * Helps to deserialize a location that was serialized and stored in sharedpreferences * @author Team3ScandalouStopwatch * */ class LocationDeserializer implements JsonDeserializer<Location> {
From source file ca.ualberta.cs.unter.util.GeoPointConverter.java
/**
* Serializes and deserializes a GeoPoint
*
* It gets serialized to [lon, lat] (e.g. [-67.834062, 46.141129] )
*
* It also expects this format when deserializing.
From source file cc.alessandro.jpocket.gson.AccessTokenDeserializer.java
public class AccessTokenDeserializer implements JsonDeserializer<AccessToken> { @Override public AccessToken deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { JsonObject jsonObject = (JsonObject) json;
From source file cc.alessandro.jpocket.gson.StatusDeserializer.java
public class StatusDeserializer implements JsonDeserializer<Status> { @Override public Status deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {