Class: TD::Types::Notification

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/notification.rb

Overview

Contains information about a notification.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#date ⇒ Integer

Notification date.

Returns:

  • (Integer) —

    the current value of date



8
9
10
# File 'lib/tdlib/types/notification.rb', line 8

def date
  @date
end

#id ⇒ Integer

Unique persistent identifier of this notification.

Returns:

  • (Integer) —

    the current value of id



8
9
10
# File 'lib/tdlib/types/notification.rb', line 8

def id
  @id
end

#is_silent ⇒ Boolean

True, if the notification was initially silent.

Returns:

  • (Boolean) —

    the current value of is_silent



8
9
10
# File 'lib/tdlib/types/notification.rb', line 8

def is_silent
  @is_silent
end

#type ⇒ TD::Types::NotificationType

Notification type.

Returns:



8
9
10
# File 'lib/tdlib/types/notification.rb', line 8

def type
  @type
end