Class StickerPackImpl

java.lang.Object
net.dv8tion.jda.internal.entities.sticker.StickerPackImpl
All Implemented Interfaces:
ISnowflake, StickerPack

public class StickerPackImpl extends Object implements StickerPack
  • Constructor Details

    • StickerPackImpl

      public StickerPackImpl(long id, List<StandardSticker> stickers, String name, String description, long coverId, long bannerId, long skuId)
  • Method Details

    • getIdLong

      public long getIdLong()
      Description copied from interface: ISnowflake
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Specified by:
      getIdLong in interface ISnowflake
      Returns:
      Long containing the Id.
    • getStickers

      @Nonnull public List<StandardSticker> getStickers()
      Description copied from interface: StickerPack
      The StandardStickers in this pack.
      Specified by:
      getStickers in interface StickerPack
      Returns:
      Immutable List of StandardStickers
    • getName

      @Nonnull public String getName()
      Description copied from interface: StickerPack
      The name of this pack.
      Specified by:
      getName in interface StickerPack
      Returns:
      Pack name
    • getDescription

      @Nonnull public String getDescription()
      Description copied from interface: StickerPack
      The description of the sticker pack
      Specified by:
      getDescription in interface StickerPack
      Returns:
      The description
    • getCoverIdLong

      public long getCoverIdLong()
      Description copied from interface: StickerPack
      The id of the sticker shown as cover.
      Specified by:
      getCoverIdLong in interface StickerPack
      Returns:
      The sticker id for the cover sticker, or 0 if there is no cover
    • getBannerIdLong

      public long getBannerIdLong()
      Description copied from interface: StickerPack
      The id for the pack banner.
      This is shown when you at the top of the pack pop-out in the client.
      Specified by:
      getBannerIdLong in interface StickerPack
      Returns:
      The banner id, or 0 if there is no banner
    • getSkuIdLong

      public long getSkuIdLong()
      Description copied from interface: StickerPack
      The stock-keeping unit (SKU) for this sticker pack.
      This is used for store purchases, if there was a store to buy the pack from.
      Specified by:
      getSkuIdLong in interface StickerPack
      Returns:
      The SKU id for this pack, or 0 if there is no SKU
    • toString

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object