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



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

def date
  @date
end

#idInteger

Unique persistent identifier of this notification.

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#typeTD::Types::NotificationType

Notification type.

Returns:



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

def type
  @type
end