Class: TD::Types::PremiumGiveawayInfo::Completed

Inherits:
TD::Types::PremiumGiveawayInfo show all
Defined in:
lib/tdlib/types/premium_giveaway_info/completed.rb

Overview

Describes a completed giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#activation_countInteger

Number of winners, which activated their gift codes.

Returns:

  • (Integer)

    the current value of activation_count



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def activation_count
  @activation_count
end

#actual_winners_selection_dateInteger

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

Returns:

  • (Integer)

    the current value of actual_winners_selection_date



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def actual_winners_selection_date
  @actual_winners_selection_date
end

#creation_dateInteger

Point in time (Unix timestamp) when the giveaway was created.

Returns:

  • (Integer)

    the current value of creation_date



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def creation_date
  @creation_date
end

#gift_codeTD::Types::String

Telegram Premium gift code that was received by the current user; empty if the user isn’t a winner in the giveaway.

Returns:

  • (TD::Types::String)

    the current value of gift_code



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def gift_code
  @gift_code
end

#was_refundedBoolean

True, if the giveaway was canceled and was fully refunded.

Returns:

  • (Boolean)

    the current value of was_refunded



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def was_refunded
  @was_refunded
end

#winner_countInteger

Number of winners in the giveaway.

Returns:

  • (Integer)

    the current value of winner_count



12
13
14
# File 'lib/tdlib/types/premium_giveaway_info/completed.rb', line 12

def winner_count
  @winner_count
end