- 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
FieldsModifier and TypeFieldDescriptionstatic final intDevice token.long[]List of user identifiers of other users currently using the application. -
Constructor Summary
ConstructorsConstructorDescriptionRegisters 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
toStringMethods 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:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-