Package it.tdlight.jni
Class TdApi.SetUsername
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetUsername
- Enclosing class:
- TdApi
public static class TdApi.SetUsername extends TdApi.Function
Changes the username of the current user.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
username
The new value of the username. -
Constructor Summary
Constructors Constructor Description SetUsername()
Changes the username of the current user.SetUsername(DataInput input)
SetUsername(String username)
Changes the username of the current user. -
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
-
username
The new value of the username. Use an empty string to remove the username. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetUsername
public SetUsername()Changes the username of the current user.Returns
Ok
-
SetUsername
Changes the username of the current user.Returns
Ok
- Parameters:
username
- String The new value of the username. Use an empty string to remove the username.
-
SetUsername
- 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()
-