Record Class PlaybackMetadata
java.lang.Object
java.lang.Record
dev.despical.musicbot.audio.PlaybackMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theloopForeverrecord component.Returns the value of theplayQueryrecord component.Returns the value of therequestedByrecord component.Returns the value of therequestedByAvatarUrlrecord component.Returns the value of thesourceUrlrecord component.Returns the value of thethumbnailUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlaybackMetadata
public PlaybackMetadata(String playQuery, String displayTitle, String sourceUrl, String requestedBy, String requestedByAvatarUrl, String thumbnailUrl, boolean loopForever) Creates an instance of aPlaybackMetadatarecord class.- Parameters:
playQuery- the value for theplayQueryrecord componentdisplayTitle- the value for thedisplayTitlerecord componentsourceUrl- the value for thesourceUrlrecord componentrequestedBy- the value for therequestedByrecord componentrequestedByAvatarUrl- the value for therequestedByAvatarUrlrecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentloopForever- the value for theloopForeverrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playQuery
Returns the value of theplayQueryrecord component.- Returns:
- the value of the
playQueryrecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
sourceUrl
Returns the value of thesourceUrlrecord component.- Returns:
- the value of the
sourceUrlrecord component
-
requestedBy
Returns the value of therequestedByrecord component.- Returns:
- the value of the
requestedByrecord component
-
requestedByAvatarUrl
Returns the value of therequestedByAvatarUrlrecord component.- Returns:
- the value of the
requestedByAvatarUrlrecord component
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
loopForever
public boolean loopForever()Returns the value of theloopForeverrecord component.- Returns:
- the value of the
loopForeverrecord component
-