Package org.drinkless.tdlib
Class TdApi.GetNetworkStatistics
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetNetworkStatistics
-
- Enclosing class:
- TdApi
public static class TdApi.GetNetworkStatistics extends TdApi.Function
Returns network data usage statistics. Can be called before authorization.Returns
NetworkStatistics
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanonlyCurrentIf true, returns only data for the current library launch.
-
Constructor Summary
Constructors Constructor Description GetNetworkStatistics()Default constructor for a function, which returns network data usage statistics.GetNetworkStatistics(boolean onlyCurrent)Creates a function, which returns network data usage statistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
onlyCurrent
public boolean onlyCurrent
If true, returns only data for the current library launch.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetNetworkStatistics
public GetNetworkStatistics()
Default constructor for a function, which returns network data usage statistics. Can be called before authorization.Returns
NetworkStatistics
-
GetNetworkStatistics
public GetNetworkStatistics(boolean onlyCurrent)
Creates a function, which returns network data usage statistics. Can be called before authorization.Returns
NetworkStatistics- Parameters:
onlyCurrent- If true, returns only data for the current library launch.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-