com.lajospolya.spotifyapiwrapper.internal.ISpotifyAsyncResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-api-wrapper Show documentation
Show all versions of spotify-api-wrapper Show documentation
This project wraps the Spotify public API in order to allow users to intuitively use it
package com.lajospolya.spotifyapiwrapper.internal;
import com.lajospolya.spotifyapiwrapper.response.SpotifyErrorContainer;
import java.util.concurrent.ExecutionException;
import java.util.function.Consumer;
public interface ISpotifyAsyncResponse
{
void block() throws ExecutionException, InterruptedException;
ISpotifyAsyncResponse success(Consumer func);
ISpotifyAsyncResponse error(Consumer func);
boolean isDone();
}