Package org.drinkless.tdlib

# Class TdApi.GiftsForCrafting

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.GiftsForCrafting

Enclosing class:
  `TdApi`

public static class TdApi.GiftsForCrafting extends TdApi.Object
Represents a list of gifts received by a user or a chat.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `TdApi.AttributeCraftPersistenceProbability[]`
  `attributePersistenceProbabilities`
  The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts for the cases when 1, 2, 3 or 4 gifts are used in the craft correspondingly.
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `TdApi.ReceivedGift[]`
  `gifts`
  The list of gifts.
  `String`
  `nextOffset`
  The offset for the next request.
  `int`
  `totalCount`
  The total number of received gifts.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GiftsForCrafting()`
  Represents a list of gifts received by a user or a chat.
  `GiftsForCrafting(int totalCount, TdApi.ReceivedGift[] gifts, TdApi.AttributeCraftPersistenceProbability[] attributePersistenceProbabilities, String nextOffset)`
  Represents a list of gifts received by a user or a chat.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### totalCount

    public int totalCount
    The total number of received gifts.

  - ### gifts

    public TdApi.ReceivedGift[] gifts
    The list of gifts.

  - ### attributePersistenceProbabilities

    public TdApi.AttributeCraftPersistenceProbability[] attributePersistenceProbabilities
    The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts for the cases when 1, 2, 3 or 4 gifts are used in the craft correspondingly.

  - ### nextOffset

    public String nextOffset
    The offset for the next request. If empty, then there are no more results.

  - ### CONSTRUCTOR

    public static final int CONSTRUCTOR
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### GiftsForCrafting

    public GiftsForCrafting()
    Represents a list of gifts received by a user or a chat.

  - ### GiftsForCrafting

    public GiftsForCrafting(int totalCount, TdApi.ReceivedGift[] gifts, TdApi.AttributeCraftPersistenceProbability[] attributePersistenceProbabilities, String nextOffset)
    Represents a list of gifts received by a user or a chat.
    Parameters:
      `totalCount` - The total number of received gifts.
      `gifts` - The list of gifts.
      `attributePersistenceProbabilities` - The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts for the cases when 1, 2, 3 or 4 gifts are used in the craft correspondingly.
      `nextOffset` - The offset for the next request. If empty, then there are no more results.

- ## Method Details

  - ### getConstructor

    public int getConstructor()
    Description copied from class: `TdApi.Object`
    Returns an identifier uniquely determining type of the object.
    Specified by:
      `getConstructor` in class `TdApi.Object`
    Returns:
      this.CONSTRUCTOR