Namespace: OpenEdge.Mobile
Class
KinveyPushNotificationService
Parent classes:
Inherits: OpenEdge.Mobile.PushNotificationService

Copyright (c) 2018 by Progress Software Corporation. All rights reserved.
File:KinveyPushNotificationService
Author(s):htirunag
Created:Fri May 25 12:46:01 IST 2018
Purpose: Constructor.




Method Summary
Options Name Purpose
ProcessResponse (IHttpResponse) /** Processes a response from the Notification service. Creates and throws a NotificationServiceError if necessary. @param HttpResponse The result of the REST request. @throws NotificationServiceError Throws an error if the return code is not 200 or 204 */
Progress.Json.ObjectModel.JsonConstruct SendNotification (JsonObject) /** Sends a notification for a given payload. The payload may be built by one of the methods in this class, or created by the PushNotificationMessageBuilder class (which is also used internally). This method performs the actual request to the Notification Service. @param JsonObject The notification payload. @return JsonConstruct The result of the request. Can be an object or array, depending on success or failure. */

Constructor Summary
Options Name Purpose
KinveyPushNotificationService (character) /** Constructor. @param character An API key for this service. This is the base64-encoded username/password for HTTP Basic authorization */
KinveyPushNotificationService (character, character, Credentials) /** Factory method for retrieving an instance of the server. @param URI A URI representing the notification server @param character A (mandatory) ApplicationName representing the Kinvey @param character A (mandatory) CustomEndpointName representing the Kinvey @param Credentials The (mandatory) Credentials to authenticate */
KinveyPushNotificationService (URI, character) /** Constructor. @param URI A URI representing the notification server @param character An API key for this service. This is the base64-encoded username/password for HTTP Basic authorization. */
KinveyPushNotificationService (URI, Credentials) /** Constructor. @param URI A URI representing the notification server @param Credentials The (mandatory) Credentials to authenticate */


Method Detail
Top

ProcessResponse (IHttpResponse)

Purpose: Processes a response from the Notification service. Creates and throws
a NotificationServiceError if necessary.
@throws NotificationServiceError Throws an error if the return code is
not 200 or 204
Parameters:
poResponse OpenEdge.Net.HTTP.IHttpResponse
Top

Progress.Json.ObjectModel.JsonConstruct SendNotification (JsonObject)

Purpose: Sends a notification for a given payload. The payload may be built by one
of the methods in this class, or created by the PushNotificationMessageBuilder
class (which is also used internally).
This method performs the actual request to the Notification Service.
depending on success or failure.
Parameters:
poPayload Progress.Json.ObjectModel.JsonObject
Returns Progress.Json.ObjectModel.JsonConstruct
JsonConstruct The result of the request. Can be an object or array,


Constructor Detail
Top

KinveyPushNotificationService (character)

Purpose: Constructor.
Parameters:
pcApiKey CHARACTER
Top

KinveyPushNotificationService (character, character, Credentials)

Purpose: Factory method for retrieving an instance of the server.
Parameters:
pApplicationName CHARACTER
pCustomEndpoint CHARACTER
pCredentials OpenEdge.Net.HTTP.Credentials
Top

KinveyPushNotificationService (URI, character)

Purpose: Constructor.
Parameters:
poURI OpenEdge.Net.URI
pcApiKey CHARACTER
Top

KinveyPushNotificationService (URI, Credentials)

Purpose: Constructor.
Parameters:
poURI OpenEdge.Net.URI
oCredentials OpenEdge.Net.HTTP.Credentials


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15