Package com.targomo.client.api.response
Class StatisticsResponse
java.lang.Object
com.targomo.client.api.response.StatisticsResponse
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsResponse(TravelOptions travelOptions, String string, long roundTripTime, long requestStart) StatisticsResponse(TravelOptions travelOptions, org.json.JSONObject result, long requestStart) -
Method Summary
Modifier and TypeMethodDescriptionlonglong
-
Constructor Details
-
StatisticsResponse
public StatisticsResponse(TravelOptions travelOptions, org.json.JSONObject result, long requestStart) - Parameters:
travelOptions- Travel configurationresult- Response bodyrequestStart- Start time of request in milliseconds
-
StatisticsResponse
public StatisticsResponse(TravelOptions travelOptions, String string, long roundTripTime, long requestStart) - Parameters:
travelOptions- Travel configurationstring- Error message, if anyroundTripTime- Total roundtrip timerequestStart- Start time of request in milliseconds
-
-
Method Details
-
getRequestTimeMillis
public long getRequestTimeMillis()- Returns:
- the requestTimeMillis
-
getTotalTimeMillis
public long getTotalTimeMillis()- Returns:
- the totalTimeMillis
-
getTravelOptions
- Returns:
- the travelOptions
-
getStatisticResult
- Returns:
- the statisticResult
-