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.
-
-
方法概要
| 修饰符和类型 |
方法 |
说明 |
Fare |
read(com.google.gson.stream.JsonReader reader) |
Read a Fare object from the Directions API and convert to a Fare
|
void |
write(com.google.gson.stream.JsonWriter out,
Fare value) |
This method is not implemented.
|
从类继承的方法 com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
方法详细资料
-
public Fare read(
com.google.gson.stream.JsonReader reader)
throws
java.io.IOException
Read a Fare object from the Directions API and convert to a
Fare
{
"currency": "USD",
"value": 6
}
- 指定者:
read 在类中 com.google.gson.TypeAdapter<Fare>
- 抛出:
java.io.IOException
-
public void write(
com.google.gson.stream.JsonWriter out,
Fare value)
throws
java.io.IOException
This method is not implemented.
- 指定者:
write 在类中 com.google.gson.TypeAdapter<Fare>
- 抛出:
java.io.IOException