public static class TdApi.RegisterDevice extends TdApi.Function<TdApi.PushReceiverId>
Returns PushReceiverId
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.DeviceToken |
deviceToken
Device token.
|
long[] |
otherUserIds
List of user identifiers of other users currently using the application.
|
| Constructor and Description |
|---|
RegisterDevice()
Default constructor for a function, which registers the currently used device for receiving push notifications.
|
RegisterDevice(TdApi.DeviceToken deviceToken,
long[] otherUserIds)
Creates a function, which registers the currently used device for receiving push notifications.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.DeviceToken deviceToken
public long[] otherUserIds
public static final int CONSTRUCTOR
public RegisterDevice()
Returns PushReceiverId
public RegisterDevice(TdApi.DeviceToken deviceToken, long[] otherUserIds)
Returns PushReceiverId
deviceToken - Device token.otherUserIds - List of user identifiers of other users currently using the application.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object