Class TdApi.SearchGiftsForResale

Enclosing class:
TdApi

public static class TdApi.SearchGiftsForResale extends TdApi.Function<TdApi.GiftsForResale>
Returns upgraded gifts that can be bought from other owners.

Returns GiftsForResale

  • Field Details

    • giftId

      public long giftId
      Identifier of the regular gift that was upgraded to a unique gift.
    • order

      Order in which the results will be sorted.
    • attributes

      public TdApi.UpgradedGiftAttributeId[] attributes
      Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. If none attributes of specific type are specified, then all values for this attribute type are allowed.
    • offset

      public String offset
      Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results.
    • limit

      public int limit
      The maximum number of gifts to return.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SearchGiftsForResale

      public SearchGiftsForResale()
      Default constructor for a function, which returns upgraded gifts that can be bought from other owners.

      Returns GiftsForResale

    • SearchGiftsForResale

      public SearchGiftsForResale(long giftId, TdApi.GiftForResaleOrder order, TdApi.UpgradedGiftAttributeId[] attributes, String offset, int limit)
      Creates a function, which returns upgraded gifts that can be bought from other owners.

      Returns GiftsForResale

      Parameters:
      giftId - Identifier of the regular gift that was upgraded to a unique gift.
      order - Order in which the results will be sorted.
      attributes - Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. If none attributes of specific type are specified, then all values for this attribute type are allowed.
      offset - Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results.
      limit - The maximum number of gifts to return.
  • 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