public static class TdApi.RegisterDevice extends TdApi.Function
Returns PushReceiverId
TdApi.Function.Constructors
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() |
toString
public 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()
getConstructor
in class TdApi.Function