java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.TermsOfService
- Enclosing class:
- TdApi
Contains Telegram terms of service.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
int
The minimum age of a user to be able to accept the terms; 0 if any.boolean
True, if a blocking popup with terms of service must be shown to the user.Text of the terms of service. -
Constructor Summary
ConstructorDescriptionContains Telegram terms of service.TermsOfService
(TdApi.FormattedText text, int minUserAge, boolean showPopup) Contains Telegram terms of service.TermsOfService
(DataInput input) Contains Telegram terms of service. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
text
Text of the terms of service. -
minUserAge
public int minUserAgeThe minimum age of a user to be able to accept the terms; 0 if any. -
showPopup
public boolean showPopupTrue, if a blocking popup with terms of service must be shown to the user. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
TermsOfService
public TermsOfService()Contains Telegram terms of service. -
TermsOfService
Contains Telegram terms of service.- Parameters:
text
- FormattedText Text of the terms of service.minUserAge
- int The minimum age of a user to be able to accept the terms; 0 if any.showPopup
- boolean True, if a blocking popup with terms of service must be shown to the user.
-
TermsOfService
Contains Telegram terms of service.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-