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

#dateInteger

Notification date.

Returns:

  • (Integer)

    the current value of date



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

def date
  @date
end

#idInteger

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_silentBoolean

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

#typeTD::Types::NotificationType

Notification type.

Returns:



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

def type
  @type
end