java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Usernames
- Enclosing class:
- TdApi
Describes usernames assigned to a user, a supergroup, or a channel.
-
Field Summary
Modifier and TypeFieldDescriptionString[]
List of active usernames; the first one must be shown as the primary username.static final int
Identifier uniquely determining type of the object.String[]
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.The active username, which can be changed with setUsername or setSupergroupUsername. -
Constructor Summary
ConstructorDescriptionDescribes usernames assigned to a user, a supergroup, or a channel.Describes usernames assigned to a user, a supergroup, or a channel.Describes usernames assigned to a user, a supergroup, or a channel. -
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
-
activeUsernames
List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames. -
disabledUsernames
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive. -
editableUsername
The active username, which can be changed with setUsername or setSupergroupUsername. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Usernames
public Usernames()Describes usernames assigned to a user, a supergroup, or a channel. -
Usernames
Describes usernames assigned to a user, a supergroup, or a channel.- Parameters:
activeUsernames
- List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.disabledUsernames
- List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.editableUsername
- The active username, which can be changed with setUsername or setSupergroupUsername.
-
Usernames
Describes usernames assigned to a user, a supergroup, or a channel.- 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()
-