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

se.michaelthelin.spotify.requests.data.AbstractDataPagingCursorbasedRequest Maven / Gradle / Ivy

There is a newer version: 9.0.0-RC1
Show newest version
package se.michaelthelin.spotify.requests.data;

import se.michaelthelin.spotify.model_objects.specification.PagingCursorbased;

public abstract class AbstractDataPagingCursorbasedRequest extends AbstractDataRequest {
  protected AbstractDataPagingCursorbasedRequest(final AbstractDataRequest.Builder builder) {
    super(builder);
  }

  public static abstract class Builder> extends AbstractDataRequest.Builder, BT> implements IPagingCursorbasedRequestBuilder {
    protected Builder(String accessToken) {
      super(accessToken);

      assert (!accessToken.equals(""));

      setHeader("Authorization", "Bearer " + accessToken);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy