Package it.tdlight.jni
Class TdApi.RegisterDevice
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.RegisterDevice
- Enclosing class:
- TdApi
public static class TdApi.RegisterDevice extends TdApi.Function
Registers the currently used device
for receiving push notifications.
Returns a globally unique identifier
of the push notification subscription.
Returns PushReceiverId
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
TdApi.DeviceToken
deviceToken
Device token.long[]
otherUserIds
List of user identifiers of other users currently using the application. -
Constructor Summary
Constructors Constructor Description RegisterDevice()
Registers 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)
-
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
-
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:
- Constant Field Values
-
-
Constructor Details
-
RegisterDevice
public RegisterDevice()Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.Returns
PushReceiverId
-
RegisterDevice
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.Returns
PushReceiverId
- Parameters:
deviceToken
- DeviceToken Device token.otherUserIds
- long[] List of user identifiers of other users currently using the application.
-
RegisterDevice
- 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()
-