Package org.hihn.listenbrainz
Class LatestImport
java.lang.Object
org.hihn.listenbrainz.LatestImport
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class LatestImport
extends Object
LatestImport
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static LatestImport
Create an instance of LatestImport given an JSON stringthe timestamp of the newest listen submitted in previous imports.the MusicBrainz ID of the userint
hashCode()
latestImport
(String latestImport) musicbrainzId
(String musicbrainzId) void
setLatestImport
(String latestImport) void
setMusicbrainzId
(String musicbrainzId) toJson()
Convert an instance of LatestImport 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_MUSICBRAINZ_ID
- See Also:
-
SERIALIZED_NAME_LATEST_IMPORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LatestImport
public LatestImport()
-
-
Method Details
-
musicbrainzId
-
getMusicbrainzId
the MusicBrainz ID of the user- Returns:
- musicbrainzId
-
setMusicbrainzId
-
latestImport
-
getLatestImport
the timestamp of the newest listen submitted in previous imports. Defaults to 0- Returns:
- latestImport
-
setLatestImport
-
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 LatestImport
-
fromJson
Create an instance of LatestImport given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of LatestImport
- Throws:
IOException
- if the JSON string is invalid with respect to LatestImport
-
toJson
Convert an instance of LatestImport to an JSON string- Returns:
- JSON string
-