Package com.github.twitch4j.helix.domain
Class ExtensionBitsProduct
java.lang.Object
com.github.twitch4j.helix.domain.ExtensionBitsProduct
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionExtensionBitsProduct
(String sku, ExtensionBitsProduct.Cost cost, Boolean isInDevelopment, String displayName, Instant expiration, Boolean isBroadcast) Creates a newExtensionBitsProduct
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
getCost()
Object containing cost information.Name of the product to be displayed in the Extension.Expiration time for the product in RFC3339 format.getSku()
SKU of the Bits product.int
hashCode()
Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback.Indicates if the product is in development and not yet released for public use.toString()
Object containing cost information.withDisplayName
(String displayName) Name of the product to be displayed in the Extension.withExpiration
(Instant expiration) Expiration time for the product in RFC3339 format.withIsBroadcast
(Boolean isBroadcast) Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback.withIsInDevelopment
(Boolean isInDevelopment) Indicates if the product is in development and not yet released for public use.SKU of the Bits product.
-
Constructor Details
-
ExtensionBitsProduct
public ExtensionBitsProduct() -
ExtensionBitsProduct
public ExtensionBitsProduct(String sku, ExtensionBitsProduct.Cost cost, Boolean isInDevelopment, String displayName, Instant expiration, Boolean isBroadcast) Creates a newExtensionBitsProduct
instance.- Parameters:
sku
- SKU of the Bits product.This is unique across all products that belong to an Extension.
cost
- Object containing cost information.isInDevelopment
- Indicates if the product is in development and not yet released for public use.displayName
- Name of the product to be displayed in the Extension.expiration
- Expiration time for the product in RFC3339 format.isBroadcast
- Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback.
-
-
Method Details
-
builder
-
toBuilder
-
withSku
SKU of the Bits product.This is unique across all products that belong to an Extension.
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withCost
Object containing cost information.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withIsInDevelopment
Indicates if the product is in development and not yet released for public use.- Returns:
this
.
-
withDisplayName
Name of the product to be displayed in the Extension.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withExpiration
Expiration time for the product in RFC3339 format.- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withIsBroadcast
Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback.- Returns:
this
.
-
getSku
SKU of the Bits product.This is unique across all products that belong to an Extension.
-
getCost
Object containing cost information. -
isInDevelopment
Indicates if the product is in development and not yet released for public use. -
getDisplayName
Name of the product to be displayed in the Extension. -
getExpiration
Expiration time for the product in RFC3339 format. -
isBroadcast
Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-