Package org.hihn.listenbrainz
Class PlayingNowForUserPayload
java.lang.Object
org.hihn.listenbrainz.PlayingNowForUserPayload
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class PlayingNowForUserPayload
extends Object
PlayingNowForUserPayload
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListensItem
(PlayingNowForUserPayloadListensInner listensItem) boolean
static PlayingNowForUserPayload
Create an instance of PlayingNowForUserPayload given an JSON stringgetCount()
Get countGet listensGet playingNowGet userIdint
hashCode()
listens
(List<PlayingNowForUserPayloadListensInner> listens) playingNow
(Boolean playingNow) void
void
void
setPlayingNow
(Boolean playingNow) void
toJson()
Convert an instance of PlayingNowForUserPayload 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_COUNT
- See Also:
-
SERIALIZED_NAME_LISTENS
- See Also:
-
SERIALIZED_NAME_PLAYING_NOW
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PlayingNowForUserPayload
public PlayingNowForUserPayload()
-
-
Method Details
-
count
-
getCount
Get count- Returns:
- count
-
setCount
-
listens
-
addListensItem
-
getListens
Get listens- Returns:
- listens
-
setListens
-
playingNow
-
getPlayingNow
Get playingNow- Returns:
- playingNow
-
setPlayingNow
-
userId
-
getUserId
Get userId- Returns:
- userId
-
setUserId
-
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 PlayingNowForUserPayload
-
fromJson
Create an instance of PlayingNowForUserPayload given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of PlayingNowForUserPayload
- Throws:
IOException
- if the JSON string is invalid with respect to PlayingNowForUserPayload
-
toJson
Convert an instance of PlayingNowForUserPayload to an JSON string- Returns:
- JSON string
-