Package it.tdlight.jni
Class TdApi.SharePhoneNumber
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SharePhoneNumber
- Enclosing class:
- TdApi
public static class TdApi.SharePhoneNumber extends TdApi.Function
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
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
userId
Identifier of the user with whom to share the phone number. -
Constructor Summary
Constructors Constructor Description SharePhoneNumber()
Shares the phone number of the current user with a mutual contact.SharePhoneNumber(int userId)
Shares the phone number of the current user with a mutual contact.SharePhoneNumber(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
-
userId
public int userIdIdentifier of the user with whom to share the phone number. The user must be a mutual contact. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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(int 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
- int Identifier of the user with whom to share the phone number. The user must be a mutual contact.
-
SharePhoneNumber
- 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()
-