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 awardedsubredditId
- the ID of the subreddit where the award was givenisNew
- indicates if this is a new awarddaysOfDripExtension
- the number of days of drip extension for the awardcoinPrice
- the price of the award in coinsid
- the unique identifier of the awardpennyDonate
- the amount donated in penniescoinReward
- the coin reward for the awardiconUrl
- the URL of the icon representing the awarddaysOfPremium
- the number of days of premium granted by the awardiconHeight
- the height of the icon in pixelstiersByRequiredAwardings
- tiers by required awardings, if applicableiconWidth
- the width of the icon in pixelsstaticIconWidth
- the static width of the icon in pixelsstartDate
- when this award starts being validisEnabled
- indicates if this award is enabledawardingsRequiredToGrantBenefits
- number of awards required to grant benefitsdescription
- a description of what this award does or representsendDate
- when this award stops being valid, if applicablesubredditCoinReward
- subreddit coin reward, if applicablecount
- how many times this award has been given outstaticIconHeight
- static height of the icon in pixelsname
- name of the awardiconFormat
- format of the icon (e.g., png, jpg)awardSubType
- sub-type of the award (e.g., global, community)pennyPrice
- price in pennies, if applicableawardType
- 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 Summary
ConstructorsConstructorDescriptionAwarding
(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) Creates an instance of aAwarding
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theawardingsRequiredToGrantBenefits
record component.Returns the value of theawardSubType
record component.Returns the value of theawardType
record component.Returns the value of thecoinPrice
record component.Returns the value of thecoinReward
record component.count()
Returns the value of thecount
record component.Returns the value of thedaysOfDripExtension
record component.Returns the value of thedaysOfPremium
record component.Returns the value of thedescription
record component.endDate()
Returns the value of theendDate
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegiverCoinReward
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theiconFormat
record component.Returns the value of theiconHeight
record component.iconUrl()
Returns the value of theiconUrl
record component.Returns the value of theiconWidth
record component.id()
Returns the value of theid
record component.Returns the value of theisEnabled
record component.isNew()
Returns the value of theisNew
record component.name()
Returns the value of thename
record component.Returns the value of thepennyDonate
record component.Returns the value of thepennyPrice
record component.Returns the value of thestartDate
record component.Returns the value of thestaticIconHeight
record component.Returns the value of thestaticIconUrl
record component.Returns the value of thestaticIconWidth
record component.Returns the value of thesubredditCoinReward
record component.Returns the value of thesubredditId
record component.com.fasterxml.jackson.databind.JsonNode
Returns the value of thetiersByRequiredAwardings
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Awarding
public 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) Creates an instance of aAwarding
record class.- Parameters:
giverCoinReward
- the value for thegiverCoinReward
record componentsubredditId
- the value for thesubredditId
record componentisNew
- the value for theisNew
record componentdaysOfDripExtension
- the value for thedaysOfDripExtension
record componentcoinPrice
- the value for thecoinPrice
record componentid
- the value for theid
record componentpennyDonate
- the value for thepennyDonate
record componentcoinReward
- the value for thecoinReward
record componenticonUrl
- the value for theiconUrl
record componentdaysOfPremium
- the value for thedaysOfPremium
record componenticonHeight
- the value for theiconHeight
record componenttiersByRequiredAwardings
- the value for thetiersByRequiredAwardings
record componenticonWidth
- the value for theiconWidth
record componentstaticIconWidth
- the value for thestaticIconWidth
record componentstartDate
- the value for thestartDate
record componentisEnabled
- the value for theisEnabled
record componentawardingsRequiredToGrantBenefits
- the value for theawardingsRequiredToGrantBenefits
record componentdescription
- the value for thedescription
record componentendDate
- the value for theendDate
record componentsubredditCoinReward
- the value for thesubredditCoinReward
record componentcount
- the value for thecount
record componentstaticIconHeight
- the value for thestaticIconHeight
record componentname
- the value for thename
record componenticonFormat
- the value for theiconFormat
record componentawardSubType
- the value for theawardSubType
record componentpennyPrice
- the value for thepennyPrice
record componentawardType
- the value for theawardType
record componentstaticIconUrl
- the value for thestaticIconUrl
record 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)
. -
giverCoinReward
Returns the value of thegiverCoinReward
record component.- Returns:
- the value of the
giverCoinReward
record component
-
subredditId
Returns the value of thesubredditId
record component.- Returns:
- the value of the
subredditId
record component
-
isNew
Returns the value of theisNew
record component.- Returns:
- the value of the
isNew
record component
-
daysOfDripExtension
Returns the value of thedaysOfDripExtension
record component.- Returns:
- the value of the
daysOfDripExtension
record component
-
coinPrice
Returns the value of thecoinPrice
record component.- Returns:
- the value of the
coinPrice
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
pennyDonate
Returns the value of thepennyDonate
record component.- Returns:
- the value of the
pennyDonate
record component
-
coinReward
Returns the value of thecoinReward
record component.- Returns:
- the value of the
coinReward
record component
-
iconUrl
Returns the value of theiconUrl
record component.- Returns:
- the value of the
iconUrl
record component
-
daysOfPremium
Returns the value of thedaysOfPremium
record component.- Returns:
- the value of the
daysOfPremium
record component
-
iconHeight
Returns the value of theiconHeight
record component.- Returns:
- the value of the
iconHeight
record component
-
tiersByRequiredAwardings
public com.fasterxml.jackson.databind.JsonNode tiersByRequiredAwardings()Returns the value of thetiersByRequiredAwardings
record component.- Returns:
- the value of the
tiersByRequiredAwardings
record component
-
iconWidth
Returns the value of theiconWidth
record component.- Returns:
- the value of the
iconWidth
record component
-
staticIconWidth
Returns the value of thestaticIconWidth
record component.- Returns:
- the value of the
staticIconWidth
record component
-
startDate
Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
isEnabled
Returns the value of theisEnabled
record component.- Returns:
- the value of the
isEnabled
record component
-
awardingsRequiredToGrantBenefits
Returns the value of theawardingsRequiredToGrantBenefits
record component.- Returns:
- the value of the
awardingsRequiredToGrantBenefits
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
endDate
Returns the value of theendDate
record component.- Returns:
- the value of the
endDate
record component
-
subredditCoinReward
Returns the value of thesubredditCoinReward
record component.- Returns:
- the value of the
subredditCoinReward
record component
-
count
Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
staticIconHeight
Returns the value of thestaticIconHeight
record component.- Returns:
- the value of the
staticIconHeight
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
iconFormat
Returns the value of theiconFormat
record component.- Returns:
- the value of the
iconFormat
record component
-
awardSubType
Returns the value of theawardSubType
record component.- Returns:
- the value of the
awardSubType
record component
-
pennyPrice
Returns the value of thepennyPrice
record component.- Returns:
- the value of the
pennyPrice
record component
-
awardType
Returns the value of theawardType
record component.- Returns:
- the value of the
awardType
record component
-
staticIconUrl
Returns the value of thestaticIconUrl
record component.- Returns:
- the value of the
staticIconUrl
record component
-