Record Class Link.Awarding

java.lang.Object
java.lang.Record
io.github.yvasyliev.telegramforwarderbot.reddit.dto.Link.Awarding
Record Components:
giverCoinReward - the coin reward given by the user who awarded
subredditId - the ID of the subreddit where the award was given
isNew - indicates if this is a new award
daysOfDripExtension - the number of days of drip extension for the award
coinPrice - the price of the award in coins
id - the unique identifier of the award
pennyDonate - the amount donated in pennies
coinReward - the coin reward for the award
iconUrl - the URL of the icon representing the award
daysOfPremium - the number of days of premium granted by the award
iconHeight - the height of the icon in pixels
tiersByRequiredAwardings - tiers by required awardings, if applicable
iconWidth - the width of the icon in pixels
staticIconWidth - the static width of the icon in pixels
startDate - when this award starts being valid
isEnabled - indicates if this award is enabled
awardingsRequiredToGrantBenefits - number of awards required to grant benefits
description - a description of what this award does or represents
endDate - when this award stops being valid, if applicable
subredditCoinReward - subreddit coin reward, if applicable
count - how many times this award has been given out
staticIconHeight - static height of the icon in pixels
name - name of the award
iconFormat - format of the icon (e.g., png, jpg)
awardSubType - sub-type of the award (e.g., global, community)
pennyPrice - price in pennies, if applicable
awardType - type of award (e.g., global, community)
staticIconUrl - URL for a static version of the icon, if available
Enclosing class:
Link

public static record Link.Awarding(Integer giverCoinReward, String subredditId, Boolean isNew, Integer daysOfDripExtension, Integer coinPrice, String id, Integer pennyDonate, Integer coinReward, URL iconUrl, Integer daysOfPremium, Integer iconHeight, com.fasterxml.jackson.databind.JsonNode tiersByRequiredAwardings, Integer iconWidth, Integer staticIconWidth, Instant startDate, Boolean isEnabled, Integer awardingsRequiredToGrantBenefits, String description, Instant endDate, Integer subredditCoinReward, Integer count, Integer staticIconHeight, String name, String iconFormat, String awardSubType, Integer pennyPrice, String awardType, URL staticIconUrl) extends Record
Represents an awarding given to a Reddit post.
  • Constructor Details

  • 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.
    • giverCoinReward

      public Integer giverCoinReward()
      Returns the value of the giverCoinReward record component.
      Returns:
      the value of the giverCoinReward record component
    • subredditId

      public String subredditId()
      Returns the value of the subredditId record component.
      Returns:
      the value of the subredditId record component
    • isNew

      public Boolean isNew()
      Returns the value of the isNew record component.
      Returns:
      the value of the isNew record component
    • daysOfDripExtension

      public Integer daysOfDripExtension()
      Returns the value of the daysOfDripExtension record component.
      Returns:
      the value of the daysOfDripExtension record component
    • coinPrice

      public Integer coinPrice()
      Returns the value of the coinPrice record component.
      Returns:
      the value of the coinPrice record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • pennyDonate

      public Integer pennyDonate()
      Returns the value of the pennyDonate record component.
      Returns:
      the value of the pennyDonate record component
    • coinReward

      public Integer coinReward()
      Returns the value of the coinReward record component.
      Returns:
      the value of the coinReward record component
    • iconUrl

      public URL iconUrl()
      Returns the value of the iconUrl record component.
      Returns:
      the value of the iconUrl record component
    • daysOfPremium

      public Integer daysOfPremium()
      Returns the value of the daysOfPremium record component.
      Returns:
      the value of the daysOfPremium record component
    • iconHeight

      public Integer iconHeight()
      Returns the value of the iconHeight record component.
      Returns:
      the value of the iconHeight record component
    • tiersByRequiredAwardings

      public com.fasterxml.jackson.databind.JsonNode tiersByRequiredAwardings()
      Returns the value of the tiersByRequiredAwardings record component.
      Returns:
      the value of the tiersByRequiredAwardings record component
    • iconWidth

      public Integer iconWidth()
      Returns the value of the iconWidth record component.
      Returns:
      the value of the iconWidth record component
    • staticIconWidth

      public Integer staticIconWidth()
      Returns the value of the staticIconWidth record component.
      Returns:
      the value of the staticIconWidth record component
    • startDate

      public Instant startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • isEnabled

      public Boolean isEnabled()
      Returns the value of the isEnabled record component.
      Returns:
      the value of the isEnabled record component
    • awardingsRequiredToGrantBenefits

      public Integer awardingsRequiredToGrantBenefits()
      Returns the value of the awardingsRequiredToGrantBenefits record component.
      Returns:
      the value of the awardingsRequiredToGrantBenefits record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • endDate

      public Instant endDate()
      Returns the value of the endDate record component.
      Returns:
      the value of the endDate record component
    • subredditCoinReward

      public Integer subredditCoinReward()
      Returns the value of the subredditCoinReward record component.
      Returns:
      the value of the subredditCoinReward record component
    • count

      public Integer count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • staticIconHeight

      public Integer staticIconHeight()
      Returns the value of the staticIconHeight record component.
      Returns:
      the value of the staticIconHeight record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • iconFormat

      public String iconFormat()
      Returns the value of the iconFormat record component.
      Returns:
      the value of the iconFormat record component
    • awardSubType

      public String awardSubType()
      Returns the value of the awardSubType record component.
      Returns:
      the value of the awardSubType record component
    • pennyPrice

      public Integer pennyPrice()
      Returns the value of the pennyPrice record component.
      Returns:
      the value of the pennyPrice record component
    • awardType

      public String awardType()
      Returns the value of the awardType record component.
      Returns:
      the value of the awardType record component
    • staticIconUrl

      public URL staticIconUrl()
      Returns the value of the staticIconUrl record component.
      Returns:
      the value of the staticIconUrl record component