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 aAwardingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theawardingsRequiredToGrantBenefitsrecord component.Returns the value of theawardSubTyperecord component.Returns the value of theawardTyperecord component.Returns the value of thecoinPricerecord component.Returns the value of thecoinRewardrecord component.count()Returns the value of thecountrecord component.Returns the value of thedaysOfDripExtensionrecord component.Returns the value of thedaysOfPremiumrecord component.Returns the value of thedescriptionrecord component.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegiverCoinRewardrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theiconFormatrecord component.Returns the value of theiconHeightrecord component.iconUrl()Returns the value of theiconUrlrecord component.Returns the value of theiconWidthrecord component.id()Returns the value of theidrecord component.Returns the value of theisEnabledrecord component.isNew()Returns the value of theisNewrecord component.name()Returns the value of thenamerecord component.Returns the value of thepennyDonaterecord component.Returns the value of thepennyPricerecord component.Returns the value of thestartDaterecord component.Returns the value of thestaticIconHeightrecord component.Returns the value of thestaticIconUrlrecord component.Returns the value of thestaticIconWidthrecord component.Returns the value of thesubredditCoinRewardrecord component.Returns the value of thesubredditIdrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of thetiersByRequiredAwardingsrecord component.final StringtoString()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 aAwardingrecord class.- Parameters:
giverCoinReward- the value for thegiverCoinRewardrecord componentsubredditId- the value for thesubredditIdrecord componentisNew- the value for theisNewrecord componentdaysOfDripExtension- the value for thedaysOfDripExtensionrecord componentcoinPrice- the value for thecoinPricerecord componentid- the value for theidrecord componentpennyDonate- the value for thepennyDonaterecord componentcoinReward- the value for thecoinRewardrecord componenticonUrl- the value for theiconUrlrecord componentdaysOfPremium- the value for thedaysOfPremiumrecord componenticonHeight- the value for theiconHeightrecord componenttiersByRequiredAwardings- the value for thetiersByRequiredAwardingsrecord componenticonWidth- the value for theiconWidthrecord componentstaticIconWidth- the value for thestaticIconWidthrecord componentstartDate- the value for thestartDaterecord componentisEnabled- the value for theisEnabledrecord componentawardingsRequiredToGrantBenefits- the value for theawardingsRequiredToGrantBenefitsrecord componentdescription- the value for thedescriptionrecord componentendDate- the value for theendDaterecord componentsubredditCoinReward- the value for thesubredditCoinRewardrecord componentcount- the value for thecountrecord componentstaticIconHeight- the value for thestaticIconHeightrecord componentname- the value for thenamerecord componenticonFormat- the value for theiconFormatrecord componentawardSubType- the value for theawardSubTyperecord componentpennyPrice- the value for thepennyPricerecord componentawardType- the value for theawardTyperecord componentstaticIconUrl- the value for thestaticIconUrlrecord 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 thegiverCoinRewardrecord component.- Returns:
- the value of the
giverCoinRewardrecord component
-
subredditId
Returns the value of thesubredditIdrecord component.- Returns:
- the value of the
subredditIdrecord component
-
isNew
Returns the value of theisNewrecord component.- Returns:
- the value of the
isNewrecord component
-
daysOfDripExtension
Returns the value of thedaysOfDripExtensionrecord component.- Returns:
- the value of the
daysOfDripExtensionrecord component
-
coinPrice
Returns the value of thecoinPricerecord component.- Returns:
- the value of the
coinPricerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
pennyDonate
Returns the value of thepennyDonaterecord component.- Returns:
- the value of the
pennyDonaterecord component
-
coinReward
Returns the value of thecoinRewardrecord component.- Returns:
- the value of the
coinRewardrecord component
-
iconUrl
Returns the value of theiconUrlrecord component.- Returns:
- the value of the
iconUrlrecord component
-
daysOfPremium
Returns the value of thedaysOfPremiumrecord component.- Returns:
- the value of the
daysOfPremiumrecord component
-
iconHeight
Returns the value of theiconHeightrecord component.- Returns:
- the value of the
iconHeightrecord component
-
tiersByRequiredAwardings
public com.fasterxml.jackson.databind.JsonNode tiersByRequiredAwardings()Returns the value of thetiersByRequiredAwardingsrecord component.- Returns:
- the value of the
tiersByRequiredAwardingsrecord component
-
iconWidth
Returns the value of theiconWidthrecord component.- Returns:
- the value of the
iconWidthrecord component
-
staticIconWidth
Returns the value of thestaticIconWidthrecord component.- Returns:
- the value of the
staticIconWidthrecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
isEnabled
Returns the value of theisEnabledrecord component.- Returns:
- the value of the
isEnabledrecord component
-
awardingsRequiredToGrantBenefits
Returns the value of theawardingsRequiredToGrantBenefitsrecord component.- Returns:
- the value of the
awardingsRequiredToGrantBenefitsrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
subredditCoinReward
Returns the value of thesubredditCoinRewardrecord component.- Returns:
- the value of the
subredditCoinRewardrecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
staticIconHeight
Returns the value of thestaticIconHeightrecord component.- Returns:
- the value of the
staticIconHeightrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
iconFormat
Returns the value of theiconFormatrecord component.- Returns:
- the value of the
iconFormatrecord component
-
awardSubType
Returns the value of theawardSubTyperecord component.- Returns:
- the value of the
awardSubTyperecord component
-
pennyPrice
Returns the value of thepennyPricerecord component.- Returns:
- the value of the
pennyPricerecord component
-
awardType
Returns the value of theawardTyperecord component.- Returns:
- the value of the
awardTyperecord component
-
staticIconUrl
Returns the value of thestaticIconUrlrecord component.- Returns:
- the value of the
staticIconUrlrecord component
-