- Enclosing class:
- TdApi
Handles a push notification. Returns
error with code 406 if the push
notification is not supported and
connection to the server is required
to fetch new data. Can be called before authorization.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
JSON-encoded push notification payload with all fields sent by the server, and "google.sentTime" and "google.notification.sound" fields added. -
Constructor Summary
ConstructorDescriptionHandles a push notification.ProcessPushNotification
(DataInput input) Handles a push notification.ProcessPushNotification
(String payload) Handles a push notification. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
payload
JSON-encoded push notification payload with all fields sent by the server, and "google.sentTime" and "google.notification.sound" fields added. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ProcessPushNotification
public ProcessPushNotification()Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization. ReturnsOk
-
ProcessPushNotification
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization. ReturnsOk
- Parameters:
payload
- String JSON-encoded push notification payload with all fields sent by the server, and "google.sentTime" and "google.notification.sound" fields added.
-
ProcessPushNotification
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization. ReturnsOk
- 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()
-