Class: TD::Types::Update::ServiceNotification
- Inherits:
-
TD::Types::Update
- Object
- Dry::Struct
- Base
- TD::Types::Update
- TD::Types::Update::ServiceNotification
- Defined in:
- lib/tdlib/types/update/service_notification.rb
Overview
Service notification from the server. Upon receiving this the application must show a popup with the content of the notification.
Instance Attribute Summary collapse
-
#content ⇒ TD::Types::MessageContent
Notification content.
-
#type ⇒ TD::Types::String
Notification type.
Method Summary
Methods inherited from Base
Instance Attribute Details
#content ⇒ TD::Types::MessageContent
Notification content.
9 10 11 |
# File 'lib/tdlib/types/update/service_notification.rb', line 9 def content @content end |
#type ⇒ TD::Types::String
Notification type. If type begins with “AUTH_KEY_DROP_”, then two buttons “Cancel” and “Log out” should be shown under notification; if user presses the second, all local data should be destroyed using Destroy method.
9 10 11 |
# File 'lib/tdlib/types/update/service_notification.rb', line 9 def type @type end |