All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lajospolya.spotifyapiwrapper.internal.ISpotifyAsyncResponse Maven / Gradle / Ivy

Go to download

This project wraps the Spotify public API in order to allow users to intuitively use it

There is a newer version: 3.0.RELEASE
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy