Module tdlight.api

Class TdApi.StorageStatisticsFast

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.StorageStatisticsFast
Enclosing class:
TdApi

public static final class TdApi.StorageStatisticsFast extends TdApi.Object
Contains approximate storage usage statistics, excluding files of unknown file type.
  • Field Details

    • filesSize

      public long filesSize
      Approximate total size of files, in bytes.
    • fileCount

      public int fileCount
      Approximate number of files.
    • databaseSize

      public long databaseSize
      Size of the database.
    • languagePackDatabaseSize

      public long languagePackDatabaseSize
      Size of the language pack database.
    • logSize

      public long logSize
      Size of the TDLib internal log.
    • CONSTRUCTOR

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

    • StorageStatisticsFast

      public StorageStatisticsFast()
      Contains approximate storage usage statistics, excluding files of unknown file type.
    • StorageStatisticsFast

      public StorageStatisticsFast(long filesSize, int fileCount, long databaseSize, long languagePackDatabaseSize, long logSize)
      Contains approximate storage usage statistics, excluding files of unknown file type.
      Parameters:
      filesSize - Approximate total size of files, in bytes.
      fileCount - Approximate number of files.
      databaseSize - Size of the database.
      languagePackDatabaseSize - Size of the language pack database.
      logSize - Size of the TDLib internal log.
    • StorageStatisticsFast

      public StorageStatisticsFast(DataInput input) throws IOException
      Contains approximate storage usage statistics, excluding files of unknown file type.
      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