Class: TD::Types::Update::HavePendingNotifications

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/have_pending_notifications.rb

Overview

Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#have_delayed_notificationsBoolean

True, if there are some delayed notification updates, which will be sent soon.

Returns:

  • (Boolean)

    the current value of have_delayed_notifications



9
10
11
# File 'lib/tdlib/types/update/have_pending_notifications.rb', line 9

def have_delayed_notifications
  @have_delayed_notifications
end

#have_unreceived_notificationsBoolean

True, if there can be some yet unreceived notifications, which are being fetched from the server.

Returns:

  • (Boolean)

    the current value of have_unreceived_notifications



9
10
11
# File 'lib/tdlib/types/update/have_pending_notifications.rb', line 9

def have_unreceived_notifications
  @have_unreceived_notifications
end