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

se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest 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.Paging;

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy