Class TdApi.PollVoteRestrictionReasonCountryRestricted

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PollVoteRestrictionReason
org.drinkless.tdlib.TdApi.PollVoteRestrictionReasonCountryRestricted
Enclosing class:
TdApi

public static class TdApi.PollVoteRestrictionReasonCountryRestricted extends TdApi.PollVoteRestrictionReason
The user is from a country, users from which aren't allowed to vote.
  • Field Details

    • countryCode

      public String countryCode
      Two-letter ISO 3166-1 alpha-2 code of the current user's country.
    • CONSTRUCTOR

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

    • PollVoteRestrictionReasonCountryRestricted

      public PollVoteRestrictionReasonCountryRestricted()
      The user is from a country, users from which aren't allowed to vote.
    • PollVoteRestrictionReasonCountryRestricted

      public PollVoteRestrictionReasonCountryRestricted(String countryCode)
      The user is from a country, users from which aren't allowed to vote.
      Parameters:
      countryCode - Two-letter ISO 3166-1 alpha-2 code of the current user's country.
  • 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