class Hamilton::Types::UserRating

Overview

This object describes the rating of a user based on their Telegram Star spendings.

Included Modules

Defined in:

types/user_rating.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def current_level_rating : Int32 #

The rating value required to get the current level.


def current_level_rating=(current_level_rating : Int32) #

The rating value required to get the current level.


def level : Int32 #

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.


def level=(level : Int32) #

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.


def next_level_rating : Int32 | Nil #

The rating value required to get to the next level; omitted if the maximum level was reached.


def 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.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def rating : Int32 #

Numerical value of the user's rating; the higher the rating, the better.


def rating=(rating : Int32) #

Numerical value of the user's rating; the higher the rating, the better.