Class: TD::Types::NotificationSound

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

Overview

Describes a notification sound in MP3 format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#dataTD::Types::String

Arbitrary data, defined while the sound was uploaded.

Returns:

  • (TD::Types::String)

    the current value of data



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def data
  @data
end

#dateInteger

Point in time (Unix timestamp) when the sound was created.

Returns:

  • (Integer)

    the current value of date



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def date
  @date
end

#durationInteger

Duration of the sound, in seconds.

Returns:

  • (Integer)

    the current value of duration



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def duration
  @duration
end

#idInteger

Unique identifier of the notification sound.

Returns:

  • (Integer)

    the current value of id



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def id
  @id
end

#soundTD::Types::File

File containing the sound.

Returns:



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def sound
  @sound
end

#titleTD::Types::String

Title of the notification sound.

Returns:

  • (TD::Types::String)

    the current value of title



10
11
12
# File 'lib/tdlib/types/notification_sound.rb', line 10

def title
  @title
end