Package org.drinkless.tdlib
Class TdApi.TermsOfService
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.TermsOfService
-
- Enclosing class:
- TdApi
public static class TdApi.TermsOfService extends TdApi.Object
Contains Telegram terms of service.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.intminUserAgeThe minimum age of a user to be able to accept the terms; 0 if any.booleanshowPopupTrue, if a blocking popup with terms of service must be shown to the user.TdApi.FormattedTexttextText of the terms of service.
-
Constructor Summary
Constructors Constructor Description TermsOfService()Contains Telegram terms of service.TermsOfService(TdApi.FormattedText text, int minUserAge, boolean showPopup)Contains Telegram terms of service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
text
public TdApi.FormattedText text
Text of the terms of service.
-
minUserAge
public int minUserAge
The minimum age of a user to be able to accept the terms; 0 if any.
-
showPopup
public boolean showPopup
True, if a blocking popup with terms of service must be shown to the user.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TermsOfService
public TermsOfService()
Contains Telegram terms of service.
-
TermsOfService
public TermsOfService(TdApi.FormattedText text, int minUserAge, boolean showPopup)
Contains Telegram terms of service.- Parameters:
text- Text of the terms of service.minUserAge- The minimum age of a user to be able to accept the terms; 0 if any.showPopup- True, if a blocking popup with terms of service must be shown to the user.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-