- Enclosing class:
- TdApi
Shares the phone number of the current user with a mutual contact.
Supposed to be called when the user clicks on
chatActionBarSharePhoneNumber.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long
Identifier of the user with whom to share the phone number. -
Constructor Summary
ConstructorDescriptionShares the phone number of the current user with a mutual contact.SharePhoneNumber
(long userId) Shares the phone number of the current user with a mutual contact.SharePhoneNumber
(DataInput input) Shares the phone number of the current user with a mutual contact. -
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.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
userId
public long userIdIdentifier of the user with whom to share the phone number. The user must be a mutual contact. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SharePhoneNumber
public SharePhoneNumber()Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.Returns
Ok
-
SharePhoneNumber
public SharePhoneNumber(long userId) Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.Returns
Ok
- Parameters:
userId
- Identifier of the user with whom to share the phone number. The user must be a mutual contact.Returns
Ok
-
SharePhoneNumber
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.Returns
Ok
- 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()
-