Package org.hihn.listenbrainz
Class CreateCoverArtGrid
java.lang.Object
org.hihn.listenbrainz.CreateCoverArtGrid
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class CreateCoverArtGrid
extends Object
CreateCoverArtGrid
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The background for the cover art.static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReleaseMbidsItem
(UUID releaseMbidsItem) addTilesItem
(String tilesItem) background
(CreateCoverArtGrid.BackgroundEnum background) boolean
static CreateCoverArtGrid
Create an instance of CreateCoverArtGrid given an JSON stringThe background for the cover art.The dimension to use for this grid.The size of the cover art image.An ordered list of release_mbids.If cover art is missing and skip-missing is false, then show-caa will determine if a blank square is shown or if the Cover Art Archive missing image is shown.If cover art is missing for a given release_mbid, skip it and move on to the next one, if true is passed.getTiles()
The tiles paramater is a list of strings that determines the location where cover art images should be placed.int
hashCode()
releaseMbids
(List<UUID> releaseMbids) void
setBackground
(CreateCoverArtGrid.BackgroundEnum background) void
setDimension
(Integer dimension) void
setImageSize
(Integer imageSize) void
setReleaseMbids
(List<UUID> releaseMbids) void
setShowCaa
(Boolean showCaa) void
setSkipMissing
(Boolean skipMissing) void
skipMissing
(Boolean skipMissing) toJson()
Convert an instance of CreateCoverArtGrid to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BACKGROUND
- See Also:
-
SERIALIZED_NAME_IMAGE_SIZE
- See Also:
-
SERIALIZED_NAME_DIMENSION
- See Also:
-
SERIALIZED_NAME_SKIP_MISSING
- See Also:
-
SERIALIZED_NAME_SHOW_CAA
- See Also:
-
SERIALIZED_NAME_TILES
- See Also:
-
SERIALIZED_NAME_RELEASE_MBIDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCoverArtGrid
public CreateCoverArtGrid()
-
-
Method Details
-
background
-
getBackground
The background for the cover art.- Returns:
- background
-
setBackground
-
imageSize
-
getImageSize
The size of the cover art image.- Returns:
- imageSize
-
setImageSize
-
dimension
-
getDimension
The dimension to use for this grid. A grid of dimension 3 has 3 images across and 3 images down, for a total of 9 images.- Returns:
- dimension
-
setDimension
-
skipMissing
-
getSkipMissing
If cover art is missing for a given release_mbid, skip it and move on to the next one, if true is passed. If false, the show-caa option will decide what happens.- Returns:
- skipMissing
-
setSkipMissing
-
showCaa
-
getShowCaa
If cover art is missing and skip-missing is false, then show-caa will determine if a blank square is shown or if the Cover Art Archive missing image is shown.- Returns:
- showCaa
-
setShowCaa
-
tiles
-
addTilesItem
-
getTiles
The tiles paramater is a list of strings that determines the location where cover art images should be placed. Each string is a comma separated list of image cells. A grid of dimension 3 has 9 cells, from 0 in the upper left hand corner, 2 in the upper right hand corner, 6 in the lower left corner and 8 in the lower right corner. Specifying only a single cell will have the image cover that cell exactly. If more than one cell is specified, the image will cover the area defined by the bounding box of all the given cells. These tiles only define bounding box areas - no clipping of images that may fall outside of these tiles will be performed.- Returns:
- tiles
-
setTiles
-
releaseMbids
-
addReleaseMbidsItem
-
getReleaseMbids
An ordered list of release_mbids. The images will be loaded and processed in the order that this list is in. The cover art for the release_mbids will be placed on the tiles defined by the tiles parameter.- Returns:
- releaseMbids
-
setReleaseMbids
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to CreateCoverArtGrid
-
fromJson
Create an instance of CreateCoverArtGrid given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of CreateCoverArtGrid
- Throws:
IOException
- if the JSON string is invalid with respect to CreateCoverArtGrid
-
toJson
Convert an instance of CreateCoverArtGrid to an JSON string- Returns:
- JSON string
-