Package org.hihn.listenbrainz
Class Playlist
java.lang.Object
org.hihn.listenbrainz.Playlist
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class Playlist
extends Object
Playlist
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTrackItem
(PlaylistTrackInner trackItem) annotation
(String annotation) boolean
extension
(PlaylistExtension extension) static Playlist
Create an instance of Playlist given an JSON stringgetAlbum()
Get albumGet annotationGet creatorgetDate()
Get dateGet durationGet extensionGet identifiergetTitle()
Get titlegetTrack()
Get trackint
hashCode()
identifier
(String identifier) void
void
setAnnotation
(String annotation) void
setCreator
(String creator) void
void
setDuration
(Integer duration) void
setExtension
(PlaylistExtension extension) void
setIdentifier
(String identifier) void
void
setTrack
(List<PlaylistTrackInner> track) toJson()
Convert an instance of Playlist to an JSON stringtoString()
track
(List<PlaylistTrackInner> track) static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALBUM
- See Also:
-
SERIALIZED_NAME_ANNOTATION
- See Also:
-
SERIALIZED_NAME_CREATOR
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_EXTENSION
- See Also:
-
SERIALIZED_NAME_IDENTIFIER
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_TRACK
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Playlist
public Playlist()
-
-
Method Details
-
album
-
getAlbum
Get album- Returns:
- album
-
setAlbum
-
annotation
-
getAnnotation
Get annotation- Returns:
- annotation
-
setAnnotation
-
creator
-
getCreator
Get creator- Returns:
- creator
-
setCreator
-
date
-
getDate
Get date- Returns:
- date
-
setDate
-
duration
-
getDuration
Get duration- Returns:
- duration
-
setDuration
-
extension
-
getExtension
Get extension- Returns:
- extension
-
setExtension
-
identifier
-
getIdentifier
Get identifier- Returns:
- identifier
-
setIdentifier
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
track
-
addTrackItem
-
getTrack
Get track- Returns:
- track
-
setTrack
-
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 Playlist
-
fromJson
Create an instance of Playlist given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Playlist
- Throws:
IOException
- if the JSON string is invalid with respect to Playlist
-
toJson
Convert an instance of Playlist to an JSON string- Returns:
- JSON string
-