Module tdlight.api

Class TdApi.RegisterDevice

Enclosing class:
TdApi

public static final class TdApi.RegisterDevice extends TdApi.Function<TdApi.PushReceiverId>
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.

Returns PushReceiverId

  • Field Details

    • deviceToken

      public TdApi.DeviceToken deviceToken
      Device token.
    • otherUserIds

      public long[] otherUserIds
      List 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.

      Returns PushReceiverId

    • RegisterDevice

      public RegisterDevice(TdApi.DeviceToken deviceToken, long[] otherUserIds)
      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

      public RegisterDevice(DataInput input) throws IOException
      Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.

      Returns PushReceiverId

      Throws:
      IOException
  • Method Details