Module tdlight.api

Class TdApi.UpdateNotificationGroup

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Update
it.tdlight.jni.TdApi.UpdateNotificationGroup
Enclosing class:
TdApi

public static final class TdApi.UpdateNotificationGroup extends TdApi.Update
A list of active notifications in a notification group has changed.
  • Field Details

    • notificationGroupId

      public int notificationGroupId
      Unique notification group identifier.
    • type

      New type of the notification group.
    • chatId

      public long chatId
      Identifier of a chat to which all notifications in the group belong.
    • notificationSettingsChatId

      public long notificationSettingsChatId
      Chat identifier, which notification settings must be applied to the added notifications.
    • notificationSoundId

      public long notificationSoundId
      Identifier of the notification sound to be played; 0 if sound is disabled.
    • totalCount

      public int totalCount
      Total number of unread notifications in the group, can be bigger than number of active notifications.
    • addedNotifications

      public TdApi.Notification[] addedNotifications
      List of added group notifications, sorted by notification identifier.
    • removedNotificationIds

      public int[] removedNotificationIds
      Identifiers of removed group notifications, sorted by notification identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • UpdateNotificationGroup

      public UpdateNotificationGroup()
      A list of active notifications in a notification group has changed.
    • UpdateNotificationGroup

      public UpdateNotificationGroup(int notificationGroupId, TdApi.NotificationGroupType type, long chatId, long notificationSettingsChatId, long notificationSoundId, int totalCount, TdApi.Notification[] addedNotifications, int[] removedNotificationIds)
      A list of active notifications in a notification group has changed.
      Parameters:
      notificationGroupId - Unique notification group identifier.
      type - New type of the notification group.
      chatId - Identifier of a chat to which all notifications in the group belong.
      notificationSettingsChatId - Chat identifier, which notification settings must be applied to the added notifications.
      notificationSoundId - Identifier of the notification sound to be played; 0 if sound is disabled.
      totalCount - Total number of unread notifications in the group, can be bigger than number of active notifications.
      addedNotifications - List of added group notifications, sorted by notification identifier.
      removedNotificationIds - Identifiers of removed group notifications, sorted by notification identifier.
    • UpdateNotificationGroup

      public UpdateNotificationGroup(DataInput input) throws IOException
      A list of active notifications in a notification group has changed.
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object