Class: TD::Types::NotificationGroup

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

Overview

Describes a group of notifications.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of a chat to which all notifications in the group belong.

Returns:

  • (Integer)

    the current value of chat_id



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

def chat_id
  @chat_id
end

#idInteger

Unique persistent auto-incremented from 1 identifier of the notification group.

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#notificationsArray<TD::Types::Notification>

The list of active notifications.

Returns:



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

def notifications
  @notifications
end

#total_countInteger

Total number of active notifications in the group.

Returns:

  • (Integer)

    the current value of total_count



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

def total_count
  @total_count
end

#typeTD::Types::NotificationGroupType

Type of the group.

Returns:



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

def type
  @type
end