class Hamilton::Types::OwnedGifts

Overview

Contains the list of gifts received and owned by a user or a chat.

Included Modules

Defined in:

types/owned_gift.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 gifts : Array(Hamilton::Types::OwnedGift) #

The list of gifts.


def gifts=(gifts : Array(Hamilton::Types::OwnedGift)) #

The list of gifts.


def next_offset : String | Nil #

Offset for the next request. If empty, then there are no more results.


def next_offset=(next_offset : String | Nil) #

Offset for the next request. If empty, then there are no more results.


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 total_count : Int32 #

The total number of gifts owned by the user or the chat.


def total_count=(total_count : Int32) #

The total number of gifts owned by the user or the chat.