Package com.targomo.client.api.response
Class DefaultResponse<O,I>
java.lang.Object
com.targomo.client.api.response.DefaultResponse<O,I>
- Type Parameters:
O- this is the type of the data that ou want to be visible from outside the responseI- this is the type of data that Jackson should create and from which you parse the data of type O , e.g. usuallyMapfromStringtoObjectfor an object
- Direct Known Subclasses:
MultiGraphResponse,TimeVectorResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinishDeserialization(TravelOptions travelOptions, long roundTripTimeMillis, long parseTimeMillis) getCode()getData()longlonglongprotected abstract O
-
Field Details
-
data
-
-
Constructor Details
-
DefaultResponse
public DefaultResponse()
-
-
Method Details
-
finishDeserialization
public void finishDeserialization(TravelOptions travelOptions, long roundTripTimeMillis, long parseTimeMillis) -
parseData
-
getCode
- Returns:
- the code
-
getRequestTimeMillis
public long getRequestTimeMillis()- Returns:
- the requestTimeMillis
-
getMessage
-
getData
-
getParseTimeMillis
public long getParseTimeMillis() -
getTravelOptions
- Returns:
- the travelOptions
-
getRoundTripTimeMillis
public long getRoundTripTimeMillis()- Returns:
- the roundTripTimeMillis
-