Module tdlight.api

Class TdApi.UpdateUnreadMessageCount

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

public static final class TdApi.UpdateUnreadMessageCount extends TdApi.Update
Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
  • Field Details

    • chatList

      public TdApi.ChatList chatList
      The chat list with changed number of unread messages.
    • unreadCount

      public int unreadCount
      Total number of unread messages.
    • unreadUnmutedCount

      public int unreadUnmutedCount
      Total number of unread messages in unmuted chats.
    • CONSTRUCTOR

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

    • UpdateUnreadMessageCount

      public UpdateUnreadMessageCount()
      Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
    • UpdateUnreadMessageCount

      public UpdateUnreadMessageCount(TdApi.ChatList chatList, int unreadCount, int unreadUnmutedCount)
      Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
      Parameters:
      chatList - The chat list with changed number of unread messages.
      unreadCount - Total number of unread messages.
      unreadUnmutedCount - Total number of unread messages in unmuted chats.
    • UpdateUnreadMessageCount

      public UpdateUnreadMessageCount(DataInput input) throws IOException
      Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
      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