java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.NetworkStatisticsEntry
it.tdlight.jni.TdApi.NetworkStatisticsEntryFile
- Enclosing class:
- TdApi
Contains information about the total amount of data that was used to
send and receive files.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Type of the file the data is part of; pass null if the data isn't related to files.Type of the network the data was sent through.long
Total number of bytes received.long
Total number of bytes sent. -
Constructor Summary
ConstructorDescriptionContains information about the total amount of data that was used to send and receive files.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.Contains information about the total amount of data that was used to send and receive files. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
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
public long sentBytesTotal number of bytes sent. -
receivedBytes
public long receivedBytesTotal number of bytes received. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-