Package ai.nextbillion.maps.internal
Class FareAdapter
java.lang.Object
com.google.gson.TypeAdapter<Fare>
ai.nextbillion.maps.internal.FareAdapter
public class FareAdapter extends com.google.gson.TypeAdapter<Fare>
This class handles conversion from JSON to
Fare.-
Constructor Summary
Constructors Constructor Description FareAdapter() -
Method Summary
-
Constructor Details
-
FareAdapter
public FareAdapter()
-
-
Method Details
-
read
Read a Fare object from the Directions API and convert to aFare{ "currency": "USD", "value": 6 }- Specified by:
readin classcom.google.gson.TypeAdapter<Fare>- Throws:
java.io.IOException
-
write
This method is not implemented.- Specified by:
writein classcom.google.gson.TypeAdapter<Fare>- Throws:
java.io.IOException
-