- Enclosing class:
- TdApi
Registers the currently used device
for receiving push notifications.
Returns a globally unique identifier
of the push notification subscription.
Returns
PushReceiverId
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Device token.long[]
List of user identifiers of other users currently using the application. -
Constructor Summary
ConstructorDescriptionRegisters the currently used device for receiving push notifications.RegisterDevice
(TdApi.DeviceToken deviceToken, long[] otherUserIds) Registers the currently used device for receiving push notifications.RegisterDevice
(DataInput input) Registers the currently used device for receiving push notifications. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
deviceToken
Device token. -
otherUserIds
public long[] otherUserIdsList of user identifiers of other users currently using the application. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
RegisterDevice
public RegisterDevice()Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription. ReturnsPushReceiverId
-
RegisterDevice
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription. ReturnsPushReceiverId
- Parameters:
deviceToken
- DeviceToken Device token.otherUserIds
- long[] List of user identifiers of other users currently using the application.
-
RegisterDevice
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription. ReturnsPushReceiverId
- 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()
-