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 Details

    • ArtistCityEmbedRequest

      public ArtistCityEmbedRequest(String userName, String artistName, String artistImage, String cityName, Boolean isPreApproved)
      Creates an instance of a ArtistCityEmbedRequest record class.
      Parameters:
      userName - the value for the userName record component
      artistName - the value for the artistName record component
      artistImage - the value for the artistImage record component
      cityName - the value for the cityName record component
      isPreApproved - the value for the isPreApproved record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • userName

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • artistName

      public String artistName()
      Returns the value of the artistName record component.
      Returns:
      the value of the artistName record component
    • artistImage

      public String artistImage()
      Returns the value of the artistImage record component.
      Returns:
      the value of the artistImage record component
    • cityName

      public String cityName()
      Returns the value of the cityName record component.
      Returns:
      the value of the cityName record component
    • isPreApproved

      public Boolean isPreApproved()
      Returns the value of the isPreApproved record component.
      Returns:
      the value of the isPreApproved record component