Class TdApi.PushMessageContentUpgradedGift

Enclosing class:
TdApi

public static class TdApi.PushMessageContentUpgradedGift extends TdApi.PushMessageContent
A message with an upgraded gift.
  • Field Details

    • isUpgrade

      public boolean isUpgrade
      True, if the gift was obtained by upgrading of a previously received gift; otherwise, if isPrepaidUpgrade == false, then this is a transferred or resold gift.
    • isPrepaidUpgrade

      public boolean isPrepaidUpgrade
      True, if the message is about completion of prepaid upgrade of the gift instead of actual receiving of a new gift.
    • CONSTRUCTOR

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

    • PushMessageContentUpgradedGift

      public PushMessageContentUpgradedGift()
      A message with an upgraded gift.
    • PushMessageContentUpgradedGift

      public PushMessageContentUpgradedGift(boolean isUpgrade, boolean isPrepaidUpgrade)
      A message with an upgraded gift.
      Parameters:
      isUpgrade - True, if the gift was obtained by upgrading of a previously received gift; otherwise, if isPrepaidUpgrade == false, then this is a transferred or resold gift.
      isPrepaidUpgrade - True, if the message is about completion of prepaid upgrade of the gift instead of actual receiving of a new gift.
  • Method Details