Class TdApi.PremiumGiveawayInfoCompleted

Enclosing class:
TdApi

public static class TdApi.PremiumGiveawayInfoCompleted extends TdApi.PremiumGiveawayInfo
Describes a completed giveaway.
  • Field Details

    • creationDate

      public int creationDate
      Point in time (Unix timestamp) when the giveaway was created.
    • actualWinnersSelectionDate

      public int actualWinnersSelectionDate
      Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.
    • wasRefunded

      public boolean wasRefunded
      True, if the giveaway was canceled and was fully refunded.
    • winnerCount

      public int winnerCount
      Number of winners in the giveaway.
    • activationCount

      public int activationCount
      Number of winners, which activated their gift codes.
    • giftCode

      public String giftCode
      Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway.
    • CONSTRUCTOR

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

    • PremiumGiveawayInfoCompleted

      public PremiumGiveawayInfoCompleted()
      Describes a completed giveaway.
    • PremiumGiveawayInfoCompleted

      public PremiumGiveawayInfoCompleted(int creationDate, int actualWinnersSelectionDate, boolean wasRefunded, int winnerCount, int activationCount, String giftCode)
      Describes a completed giveaway.
      Parameters:
      creationDate - Point in time (Unix timestamp) when the giveaway was created.
      actualWinnersSelectionDate - Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.
      wasRefunded - True, if the giveaway was canceled and was fully refunded.
      winnerCount - Number of winners in the giveaway.
      activationCount - Number of winners, which activated their gift codes.
      giftCode - Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway.
  • Method Details