Package org.hihn.listenbrainz
Class ListensForUserPayload
java.lang.Object
org.hihn.listenbrainz.ListensForUserPayload
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class ListensForUserPayload
extends Object
ListensForUserPayload
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListensItem
(ListensForUserPayloadListensInner listensItem) boolean
static ListensForUserPayload
Create an instance of ListensForUserPayload given an JSON stringgetCount()
Get countGet latestListenTsGet listensGet oldestListenTsGet userIdint
hashCode()
latestListenTs
(Integer latestListenTs) listens
(List<ListensForUserPayloadListensInner> listens) oldestListenTs
(Integer oldestListenTs) void
void
setLatestListenTs
(Integer latestListenTs) void
setListens
(List<ListensForUserPayloadListensInner> listens) void
setOldestListenTs
(Integer oldestListenTs) void
toJson()
Convert an instance of ListensForUserPayload 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_LATEST_LISTEN_TS
- See Also:
-
SERIALIZED_NAME_LISTENS
- See Also:
-
SERIALIZED_NAME_OLDEST_LISTEN_TS
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListensForUserPayload
public ListensForUserPayload()
-
-
Method Details
-
count
-
getCount
Get count- Returns:
- count
-
setCount
-
latestListenTs
-
getLatestListenTs
Get latestListenTs- Returns:
- latestListenTs
-
setLatestListenTs
-
listens
-
addListensItem
-
getListens
Get listens- Returns:
- listens
-
setListens
-
oldestListenTs
-
getOldestListenTs
Get oldestListenTs- Returns:
- oldestListenTs
-
setOldestListenTs
-
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 ListensForUserPayload
-
fromJson
Create an instance of ListensForUserPayload given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ListensForUserPayload
- Throws:
IOException
- if the JSON string is invalid with respect to ListensForUserPayload
-
toJson
Convert an instance of ListensForUserPayload to an JSON string- Returns:
- JSON string
-