Package org.drinkless.tdlib

# Class TdApi.MessageUpgradedGiftPurchaseOfferRejected

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageUpgradedGiftPurchaseOfferRejected

Enclosing class:
  `TdApi`

public static class TdApi.MessageUpgradedGiftPurchaseOfferRejected extends TdApi.MessageContent
An offer to purchase a gift was rejected or expired.

- ## Nested Class Summary

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

  `TdApi.MessageContent.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `TdApi.UpgradedGift`
  `gift`
  The gift.
  `long`
  `offerMessageId`
  Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message.
  `TdApi.GiftResalePrice`
  `price`
  The proposed price.
  `boolean`
  `wasExpired`
  True, if the offer has expired; otherwise, the offer was explicitly rejected.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageUpgradedGiftPurchaseOfferRejected()`
  An offer to purchase a gift was rejected or expired.
  `MessageUpgradedGiftPurchaseOfferRejected(TdApi.UpgradedGift gift, TdApi.GiftResalePrice price, long offerMessageId, boolean wasExpired)`
  An offer to purchase a gift was rejected or expired.

- ## 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

  - ### gift

    public TdApi.UpgradedGift gift
    The gift.

  - ### price

    public TdApi.GiftResalePrice price
    The proposed price.

  - ### offerMessageId

    public long offerMessageId
    Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message.

  - ### wasExpired

    public boolean wasExpired
    True, if the offer has expired; otherwise, the offer was explicitly rejected.

  - ### CONSTRUCTOR

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

- ## Constructor Details

  - ### MessageUpgradedGiftPurchaseOfferRejected

    public MessageUpgradedGiftPurchaseOfferRejected()
    An offer to purchase a gift was rejected or expired.

  - ### MessageUpgradedGiftPurchaseOfferRejected

    public MessageUpgradedGiftPurchaseOfferRejected(TdApi.UpgradedGift gift, TdApi.GiftResalePrice price, long offerMessageId, boolean wasExpired)
    An offer to purchase a gift was rejected or expired.
    Parameters:
      `gift` - The gift.
      `price` - The proposed price.
      `offerMessageId` - Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message.
      `wasExpired` - True, if the offer has expired; otherwise, the offer was explicitly rejected.

- ## 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.MessageContent`
    Returns:
      this.CONSTRUCTOR