Class AddReleaseToWantListRequest

java.lang.Object
com.amilesend.discogs.model.wantlist.AddReleaseToWantListRequest
All Implemented Interfaces:
BodyBasedRequest, QueryParameterBasedRequest
Direct Known Subclasses:
UpdateReleaseOnWantListRequest

public class AddReleaseToWantListRequest extends Object implements BodyBasedRequest
The request to add a release to a user's want list.
See Also:
  • Method Details

    • populateQueryParameters

      public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder)
      Description copied from interface: QueryParameterBasedRequest
      Helper method to populate query parameters of a HttpUrl.Builder.
      Specified by:
      populateQueryParameters in interface QueryParameterBasedRequest
      Parameters:
      urlBuilder - the HttpUrl.Builder instance
      Returns:
      the HttpUrl.Builder instance
    • builder

    • getUsername

      public String getUsername()
      The username (required).
    • getReleaseId

      public long getReleaseId()
      The release identifier (required).
    • getNotes

      public String getNotes()
      The user notes associated with the release (optional).
    • getRating

      public Integer getRating()
      The rating (1-5) for the release (optional).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object