Package org.drinkless.tdlib
Class TdApi.UserRating
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.UserRating
- Enclosing class:
- TdApi
Contains description of user rating.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longThe rating required for the current level.booleanTrue, if the maximum level is reached.intThe level of the user; may be negative.longThe rating required for the next level; 0 if the maximum level is reached.longNumerical value of the rating. -
Constructor Summary
ConstructorsConstructorDescriptionContains description of user rating.UserRating(int level, boolean isMaximumLevelReached, long rating, long currentLevelRating, long nextLevelRating) Contains description of user rating. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
level
public int levelThe level of the user; may be negative. -
isMaximumLevelReached
public boolean isMaximumLevelReachedTrue, if the maximum level is reached. -
rating
public long ratingNumerical value of the rating. -
currentLevelRating
public long currentLevelRatingThe rating required for the current level. -
nextLevelRating
public long nextLevelRatingThe rating required for the next level; 0 if the maximum level is reached. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UserRating
public UserRating()Contains description of user rating. -
UserRating
public UserRating(int level, boolean isMaximumLevelReached, long rating, long currentLevelRating, long nextLevelRating) Contains description of user rating.- Parameters:
level- The level of the user; may be negative.isMaximumLevelReached- True, if the maximum level is reached.rating- Numerical value of the rating.currentLevelRating- The rating required for the current level.nextLevelRating- The rating required for the next level; 0 if the maximum level is reached.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-