Wrapped Request
The "@WrappedRequest"
annotation is applied to those methods offered by libraries where the original request of the API service involved are "wrapped"
by the methods of the library, that is, the possible combinations with any parameters of the original request are easily added to this request with the "wrapped"
method marked with this annotation
// original params (NOT MANDATORY) of the API service: maxResults (int), includeAnyThing (boolean)
// original request
public void () {
sendApiRequest();
}
public void makeRequest(int maxResults){
sendApiRequest(maxResults);
}
public void makeRequest(boolean includeAnyThing){
sendApiRequest(includeAnyThing);
}
public void makeRequest(int maxResults, boolean includeAnyThing){
sendApiRequest(maxResults, includeAnyThing);
}
Content copied to clipboard
Author
N7ghtm4r3 - Tecknobit