java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.NotificationSound>
it.tdlight.jni.TdApi.AddSavedNotificationSound
- Enclosing class:
- TdApi
public static final class TdApi.AddSavedNotificationSound
extends TdApi.Function<TdApi.NotificationSound>
Adds a new notification sound to the list of saved notification
sounds. The new notification sound is added to the top of the list.
If it is already in the list, its position isn't changed.
Returns NotificationSound
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Notification sound file to add. -
Constructor Summary
ConstructorDescriptionAdds a new notification sound to the list of saved notification sounds.Adds a new notification sound to the list of saved notification sounds.Adds a new notification sound to the list of saved notification sounds. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
sound
Notification sound file to add. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddSavedNotificationSound
public AddSavedNotificationSound()Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed.Returns
NotificationSound
-
AddSavedNotificationSound
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed.Returns
NotificationSound
- Parameters:
sound
- Notification sound file to add.Returns
NotificationSound
-
AddSavedNotificationSound
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed.Returns
NotificationSound
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-