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

se.michaelthelin.spotify.requests.data.AbstractDataRequest 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.requests.AbstractRequest;

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

  public static abstract class Builder> extends AbstractRequest.Builder {
    protected Builder(String accessToken) {
      super();

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy