net.degreedays.api
Class Response

java.lang.Object
  extended by net.degreedays.api.Response
Direct Known Subclasses:
FailureResponse, LocationDataResponse, LocationInfoResponse

public abstract class Response
extends java.lang.Object

Models the API's response to a Request (e.g. degree day data returned in response to a request for that data).

This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.

All concrete subclasses of this abstract class are immutable. You can safely reuse them and call them from multiple threads at once.


Method Summary
 ResponseMetadata metadata()
          Returns a non-null object containing metadata sent back with every response from the API servers, including details of the account's current rate limit.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

metadata

public ResponseMetadata metadata()
Returns a non-null object containing metadata sent back with every response from the API servers, including details of the account's current rate limit.



www.degreedays.net/api/