Class: TD::Types::NotificationSound
- Defined in:
- lib/tdlib/types/notification_sound.rb
Overview
Describes a notification sound in MP3 format.
Instance Attribute Summary collapse
-
#data ⇒ TD::Types::String
Arbitrary data, defined while the sound was uploaded.
-
#date ⇒ Integer
Point in time (Unix timestamp) when the sound was created.
-
#duration ⇒ Integer
Duration of the sound, in seconds.
-
#id ⇒ Integer
Unique identifier of the notification sound.
-
#sound ⇒ TD::Types::File
File containing the sound.
-
#title ⇒ TD::Types::String
Title of the notification sound.
Method Summary
Methods inherited from Base
Instance Attribute Details
#data ⇒ TD::Types::String
Arbitrary data, defined while the sound was uploaded.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def data @data end |
#date ⇒ Integer
Point in time (Unix timestamp) when the sound was created.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def date @date end |
#duration ⇒ Integer
Duration of the sound, in seconds.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def duration @duration end |
#id ⇒ Integer
Unique identifier of the notification sound.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def id @id end |
#sound ⇒ TD::Types::File
File containing the sound.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def sound @sound end |
#title ⇒ TD::Types::String
Title of the notification sound.
10 11 12 |
# File 'lib/tdlib/types/notification_sound.rb', line 10 def title @title end |