Package it.tdlight.jni
Class TdApi.GetNetworkStatistics
- Enclosing class:
- TdApi
public static class TdApi.GetNetworkStatistics extends TdApi.Function<TdApi.NetworkStatistics>
Returns network data usage statistics.
Can be called before authorization.
Returns NetworkStatistics
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
boolean
onlyCurrent
If true, returns only data for the current library launch. -
Constructor Summary
Constructors Constructor Description GetNetworkStatistics()
Returns network data usage statistics.GetNetworkStatistics(boolean onlyCurrent)
Returns network data usage statistics.GetNetworkStatistics(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
onlyCurrent
public boolean onlyCurrentIf true, returns only data for the current library launch. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
GetNetworkStatistics
public GetNetworkStatistics()Returns network data usage statistics. Can be called before authorization.Returns
NetworkStatistics
-
GetNetworkStatistics
public GetNetworkStatistics(boolean onlyCurrent)Returns network data usage statistics. Can be called before authorization.Returns
NetworkStatistics
- Parameters:
onlyCurrent
- boolean If true, returns only data for the current library launch.
-
GetNetworkStatistics
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-