Home
Find the answer to your question
How do I get the ebayTime or other common features from a sdk wrapper class like GetSearchResultsCall ?
The common features or properties listed below are contained in the API abstract complex data type AbstractResponseType.
Timestamp
Ack
CorrelationID
Version
Build
These features are inherited and are directly accessible by all derived API XXXXResponseType classes. To read these properties from the wrapper class like GetSearchResultsCall or GetItmeCall, one needs to call the getResponseObject() method which is inherited from the ApiCall class. An example is shown below:
GetSearchResultsCall api = new GetSearchResultsCall(apiContext);
...
api.getSearchResults();
AbstractResponseType response = api.getResponseObject();
java.util.Date resptimestmp = response.getTimestamp().getTime();
String version = response.getVersion();
String build = response.getBuild();
AckCodeType ack = response.getAck();