class
Hamilton::Types::UserRating
- Hamilton::Types::UserRating
- Reference
- Object
Overview
This object describes the rating of a user based on their Telegram Star spendings.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/user_rating.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#current_level_rating : Int32
The rating value required to get the current level.
-
#current_level_rating=(current_level_rating : Int32)
The rating value required to get the current level.
-
#level : Int32
Current level of the user, indicating their reliability when purchasing digital goods and services.
-
#level=(level : Int32)
Current level of the user, indicating their reliability when purchasing digital goods and services.
-
#next_level_rating : Int32 | Nil
The rating value required to get to the next level; omitted if the maximum level was reached.
-
#next_level_rating=(next_level_rating : Int32 | Nil)
The rating value required to get to the next level; omitted if the maximum level was reached.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#rating : Int32
Numerical value of the user's rating; the higher the rating, the better.
-
#rating=(rating : Int32)
Numerical value of the user's rating; the higher the rating, the better.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The rating value required to get the current level.
Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.
Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.
The rating value required to get to the next level; omitted if the maximum level was reached.
The rating value required to get to the next level; omitted if the maximum level was reached.
Numerical value of the user's rating; the higher the rating, the better.