Record Class YoutubeConfig
java.lang.Object
java.lang.Record
dev.despical.musicbot.config.YoutubeConfig
-
Constructor Summary
ConstructorsConstructorDescriptionYoutubeConfig(boolean oauth2Enabled, String oauth2RefreshToken, String remoteCipherUrl) Creates an instance of aYoutubeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoauth2Enabledrecord component.Returns the value of theoauth2RefreshTokenrecord component.Returns the value of theremoteCipherUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
YoutubeConfig
Creates an instance of aYoutubeConfigrecord class.- Parameters:
oauth2Enabled- the value for theoauth2Enabledrecord componentoauth2RefreshToken- the value for theoauth2RefreshTokenrecord componentremoteCipherUrl- the value for theremoteCipherUrlrecord 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. -
oauth2Enabled
public boolean oauth2Enabled()Returns the value of theoauth2Enabledrecord component.- Returns:
- the value of the
oauth2Enabledrecord component
-
oauth2RefreshToken
Returns the value of theoauth2RefreshTokenrecord component.- Returns:
- the value of the
oauth2RefreshTokenrecord component
-
remoteCipherUrl
Returns the value of theremoteCipherUrlrecord component.- Returns:
- the value of the
remoteCipherUrlrecord component
-