Package org.localify.common
Record Class BotService.ArtistCityEmbedRequest
java.lang.Object
java.lang.Record
org.localify.common.BotService.ArtistCityEmbedRequest
- Record Components:
userName- The name of the user who made the contribution.artistName- The name of the artist.artistImage- The image URL of the artist.cityName- The name of the city.isPreApproved- Whether the contribution is pre-approved.
- Enclosing class:
- BotService
public static record BotService.ArtistCityEmbedRequest(String userName, String artistName, String artistImage, String cityName, Boolean isPreApproved)
extends Record
Represents a request to create an embed for an artist-city contribution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartistImagerecord component.Returns the value of theartistNamerecord component.cityName()Returns the value of thecityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisPreApprovedrecord component.final StringtoString()Returns a string representation of this record class.userName()Returns the value of theuserNamerecord component.
-
Constructor Details
-
ArtistCityEmbedRequest
public ArtistCityEmbedRequest(String userName, String artistName, String artistImage, String cityName, Boolean isPreApproved) Creates an instance of aArtistCityEmbedRequestrecord class.- Parameters:
userName- the value for theuserNamerecord componentartistName- the value for theartistNamerecord componentartistImage- the value for theartistImagerecord componentcityName- the value for thecityNamerecord componentisPreApproved- the value for theisPreApprovedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
artistName
Returns the value of theartistNamerecord component.- Returns:
- the value of the
artistNamerecord component
-
artistImage
Returns the value of theartistImagerecord component.- Returns:
- the value of the
artistImagerecord component
-
cityName
Returns the value of thecityNamerecord component.- Returns:
- the value of the
cityNamerecord component
-
isPreApproved
Returns the value of theisPreApprovedrecord component.- Returns:
- the value of the
isPreApprovedrecord component
-