Skip to main content

EnsLib.PushNotifications.GCM.Operation

class EnsLib.PushNotifications.GCM.Operation extends Ens.BusinessOperation, %Net.PushNotifications.GCM

Interfaces with the Google Cloud Messaging Service

Property Inventory

Method Inventory

Parameters

parameter INVOCATION = Queue;
Inherited description: 2 modes: Queue, InProc
parameter SETTINGS = NotificationProtocol,PushServer,SSLConfig,Timeout;
Inherited description: List of properties can be set as settings in the configuration file format is a comma separated list of property names

Properties

property Adapter as Ens.OutboundAdapter;
Inherited description: The adapter instance
Property methods: AdapterGet(), AdapterGetSwizzled(), AdapterIsValid(), AdapterNewObject(), AdapterSet()
property NotificationProtocol as %String (DISPLAYLIST = ",HTTP,XMPP", VALUELIST = ",http,xmpp") [ Required ];
Specifies the GCM notification protocol. Has one of the following values:

  • HTTP - HTTP REST protocol
  • XMPP - Reserved for future use. The GCM operation does not support the XMPP always connected, bi-directional protocol.
    Property methods: NotificationProtocolDisplayToLogical(), NotificationProtocolGet(), NotificationProtocolIsValid(), NotificationProtocolLogicalToDisplay(), NotificationProtocolLogicalToOdbc(), NotificationProtocolNormalize(), NotificationProtocolSet()

Methods

classmethod ConstructGCMHTTPPayloadArray(pRequest As EnsLib.PushNotifications.NotificationRequest, ByRef pPayloadArray As %String) as %Status
Construct a payload request for GCM (over HTTP)
method OnInit() as %Status
This user callback method is called via initConfig() from %OnNew() or in the case of SOAP Services from OnPreSOAP()
method OnTearDown() as %Status
This user callback method is called from %OnClose()
method PushNotification(pRequest As EnsLib.PushNotifications.NotificationRequest, ByRef pResponse As EnsLib.PushNotifications.NotificationResponse) as %Status
method doHTTPPushNotification(pRequest As EnsLib.PushNotifications.NotificationRequest, ByRef pResponse As EnsLib.PushNotifications.NotificationResponse) as %Status
method doXMPPPushNotification(pRequest As EnsLib.PushNotifications.NotificationRequest, ByRef pResponse As EnsLib.PushNotifications.NotificationResponse) as %Status

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab