Class ExtensionBitsProduct

java.lang.Object
com.github.twitch4j.helix.domain.ExtensionBitsProduct

public class ExtensionBitsProduct extends Object
  • Constructor Details

  • Method Details

    • builder

    • toBuilder

    • withSku

      public ExtensionBitsProduct withSku(String sku)
      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

      public ExtensionBitsProduct withIsInDevelopment(Boolean isInDevelopment)
      Indicates if the product is in development and not yet released for public use.
      Returns:
      this.
    • withDisplayName

      public ExtensionBitsProduct withDisplayName(String displayName)
      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

      public ExtensionBitsProduct withExpiration(Instant expiration)
      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

      public ExtensionBitsProduct 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.
      Returns:
      this.
    • getSku

      public String getSku()
      SKU of the Bits product.

      This is unique across all products that belong to an Extension.

    • getCost

      public ExtensionBitsProduct.Cost getCost()
      Object containing cost information.
    • isInDevelopment

      public Boolean isInDevelopment()
      Indicates if the product is in development and not yet released for public use.
    • getDisplayName

      public String getDisplayName()
      Name of the product to be displayed in the Extension.
    • getExpiration

      public Instant getExpiration()
      Expiration time for the product in RFC3339 format.
    • isBroadcast

      public Boolean isBroadcast()
      Indicates if Bits product purchase events are broadcast to all instances of an Extension on a channel via the “onTransactionComplete” helper callback.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object