Package de.sonallux.spotify.api.http
Class ApiCall<T>
java.lang.Object
de.sonallux.spotify.api.http.ApiCall<T>
- Direct Known Subclasses:
AuthorizedApiCall
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()execute()protected okhttp3.CallReturns the raw call, initializing it if necessary.booleanbooleanparseResponse(okhttp3.Response rawResponse)
-
Constructor Details
-
ApiCall
public ApiCall()
-
-
Method Details
-
getRawCall
Returns the raw call, initializing it if necessary. Throws if initializing the raw call throws, or has thrown in previous attempts to create it.- Throws:
IOException
-
isExecuted
public boolean isExecuted() -
executeCall
- Throws:
IOException
-
execute
- Throws:
SpotifyApiException
-
parseResponse
- Throws:
IOException
-
cancel
public void cancel() -
isCanceled
public boolean isCanceled()
-