Package org.drinkless.tdlib

# Class TdApi.GetGiftCollections

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.GiftCollections>
org.drinkless.tdlib.TdApi.GetGiftCollections

Enclosing class:
  `TdApi`

public static class TdApi.GetGiftCollections extends TdApi.Function<TdApi.GiftCollections>
Returns collections of gifts owned by the given user or chat.

Returns `GiftCollections`

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function

  `TdApi.Function.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `TdApi.MessageSender`
  `ownerId`
  Identifier of the user or the channel chat that received the gifts.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetGiftCollections()`
  Default constructor for a function, which returns collections of gifts owned by the given user or chat.
  `GetGiftCollections(TdApi.MessageSender ownerId)`
  Creates a function, which returns collections of gifts owned by the given user or 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.Function

  `toString`

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

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

- ## Field Details

  - ### ownerId

    public TdApi.MessageSender ownerId
    Identifier of the user or the channel chat that received the gifts.

  - ### CONSTRUCTOR

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

- ## Constructor Details

  - ### GetGiftCollections

    public GetGiftCollections()
    Default constructor for a function, which returns collections of gifts owned by the given user or chat.

    Returns `GiftCollections`

  - ### GetGiftCollections

    public GetGiftCollections(TdApi.MessageSender ownerId)
    Creates a function, which returns collections of gifts owned by the given user or chat.

    Returns `GiftCollections`

    Parameters:
      `ownerId` - Identifier of the user or the channel chat that received the gifts.

- ## 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.Function<TdApi.GiftCollections>`
    Returns:
      this.CONSTRUCTOR