Class SpotifySearchQuery

java.lang.Object
org.localify.dto.SpotifySearchQuery
All Implemented Interfaces:
Serializable

public class SpotifySearchQuery extends Object implements Serializable
Represents a search query specifically for Spotify.
See Also:
  • Field Details

    • DEFAULT_SEARCH_LIMIT

      public static final int DEFAULT_SEARCH_LIMIT
      The default search limit.
      See Also:
  • Constructor Details

    • SpotifySearchQuery

      public SpotifySearchQuery()
      Default constructor.
    • SpotifySearchQuery

      public SpotifySearchQuery(String q)
      Constructs a new SpotifySearchQuery with the specified query string.
      Parameters:
      q - The query string.
    • SpotifySearchQuery

      public SpotifySearchQuery(String q, Integer limit)
      Constructs a new SpotifySearchQuery with the specified query string and limit.
      Parameters:
      q - The query string.
      limit - The limit.
  • Method Details

    • getQ

      public String getQ()
      Gets the search query string.
      Returns:
      The search query string.
    • setQ

      public void setQ(String q)
      Sets the search query string.
      Parameters:
      q - The search query string.
    • getLimit

      @NotNull public @NotNull Integer getLimit()
      Gets the search limit.
      Returns:
      The search limit.
    • setLimit

      public void setLimit(@NotNull @NotNull Integer limit)
      Sets the search limit.
      Parameters:
      limit - The search limit.
    • pageable

      public org.springframework.data.domain.Pageable pageable()
      Creates a Pageable object from the search query.
      Returns:
      A Pageable object.
    • getAutoSearchSpotify

      public Boolean getAutoSearchSpotify()
      Gets whether to automatically search Spotify.
      Returns:
      true to automatically search Spotify, false otherwise.
    • setAutoSearchSpotify

      public void setAutoSearchSpotify(Boolean autoSearchSpotify)
      Sets whether to automatically search Spotify.
      Parameters:
      autoSearchSpotify - true to automatically search Spotify, false otherwise.
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.