Record Class SpigotSale
java.lang.Object
java.lang.Record
dev.despical.spigotsaleswebhook.model.SpigotSale
-
Constructor Summary
ConstructorsConstructorDescriptionSpigotSale(String pluginName, String pluginUrl, String username, String previousUsername, String userProfileUrl, ZonedDateTime purchaseDate, double price, String currency) Creates an instance of aSpigotSalerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuyerKey()currency()Returns the value of thecurrencyrecord 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 thepluginNamerecord component.Returns the value of thepluginUrlrecord component.Returns the value of thepreviousUsernamerecord component.doubleprice()Returns the value of thepricerecord component.Returns the value of thepurchaseDaterecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.Returns the value of theuserProfileUrlrecord component.boolean
-
Constructor Details
-
SpigotSale
public SpigotSale(String pluginName, String pluginUrl, String username, String previousUsername, String userProfileUrl, ZonedDateTime purchaseDate, double price, String currency) Creates an instance of aSpigotSalerecord class.- Parameters:
pluginName- the value for thepluginNamerecord componentpluginUrl- the value for thepluginUrlrecord componentusername- the value for theusernamerecord componentpreviousUsername- the value for thepreviousUsernamerecord componentuserProfileUrl- the value for theuserProfileUrlrecord componentpurchaseDate- the value for thepurchaseDaterecord componentprice- the value for thepricerecord componentcurrency- the value for thecurrencyrecord component
-
-
Method Details
-
buyerKey
-
legacyBuyerKeys
-
wasSeen
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
pluginUrl
Returns the value of thepluginUrlrecord component.- Returns:
- the value of the
pluginUrlrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
previousUsername
Returns the value of thepreviousUsernamerecord component.- Returns:
- the value of the
previousUsernamerecord component
-
userProfileUrl
Returns the value of theuserProfileUrlrecord component.- Returns:
- the value of the
userProfileUrlrecord component
-
purchaseDate
Returns the value of thepurchaseDaterecord component.- Returns:
- the value of the
purchaseDaterecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-