Module tdlight.api

Class TdApi.NetworkStatisticsEntryFile

Enclosing class:
TdApi

public static final class TdApi.NetworkStatisticsEntryFile extends TdApi.NetworkStatisticsEntry
Contains information about the total amount of data that was used to send and receive files.
  • Field Details

    • fileType

      public TdApi.FileType fileType
      Type of the file the data is part of; pass null if the data isn't related to files.
    • networkType

      public TdApi.NetworkType networkType
      Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
    • sentBytes

      public long sentBytes
      Total number of bytes sent.
    • receivedBytes

      public long receivedBytes
      Total number of bytes received.
    • CONSTRUCTOR

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

    • NetworkStatisticsEntryFile

      public NetworkStatisticsEntryFile()
      Contains information about the total amount of data that was used to send and receive files.
    • NetworkStatisticsEntryFile

      public NetworkStatisticsEntryFile(TdApi.FileType fileType, TdApi.NetworkType networkType, long sentBytes, long receivedBytes)
      Contains information about the total amount of data that was used to send and receive files.
      Parameters:
      fileType - Type of the file the data is part of; pass null if the data isn't related to files.
      networkType - Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
      sentBytes - Total number of bytes sent.
      receivedBytes - Total number of bytes received.
    • NetworkStatisticsEntryFile

      public NetworkStatisticsEntryFile(DataInput input) throws IOException
      Contains information about the total amount of data that was used to send and receive files.
      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