Module tdlight.api

Class TdApi.ReorderChatFolders

Enclosing class:
TdApi

public static final class TdApi.ReorderChatFolders extends TdApi.Function<TdApi.Ok>
Changes the order of chat folders.

Returns Ok

  • Field Details

    • chatFolderIds

      public int[] chatFolderIds
      Identifiers of chat folders in the new correct order.
    • mainChatListPosition

      public int mainChatListPosition
      Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users.
    • CONSTRUCTOR

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

    • ReorderChatFolders

      public ReorderChatFolders()
      Changes the order of chat folders.

      Returns Ok

    • ReorderChatFolders

      public ReorderChatFolders(int[] chatFolderIds, int mainChatListPosition)
      Changes the order of chat folders.

      Returns Ok

      Parameters:
      chatFolderIds - Identifiers of chat folders in the new correct order.
      mainChatListPosition - Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users.

      Returns Ok

    • ReorderChatFolders

      public ReorderChatFolders(DataInput input) throws IOException
      Changes the order of chat folders.

      Returns Ok

      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