This section defines enumerated types and manifest constants used in the Notification API.
The following enumerated constants specify notification types. See the UP.SDK Developer's Guide for a description of the notification types.
The following enumerated constants specify notification status codes returned by the UP.Link server in response to GetNtfnStatus(), GetPrefetchStatus(), and GetAlertStatus() calls..
| Constant | Description |
|---|---|
|
CNtfnStatusPending
| |
|
CNtfnStatusDelivered
| |
|
CNtfnStatusExpired
| |
|
CNtfnStatusUndeliverable
| |
|
CNtfnStatusNone
| A dummy, invalid status type, which you can use for catching errors. |
The following constants specify the IANA-assigned port numbers for secure and non-secure notifications.
The following constants specify HTTP status codes. The meaning of these codes varies slightly depending on the context. For a detailed description of the meaning of each status code, see the "Returns" section for the methods described in Abstract base notification class (TNtfnClientAPI).
| Constant | Description |
|---|---|
|
CHTTPStatusOK
| |
|
CHTTPStatusNoContent
| |
|
CHTTPStatusBadRequest
| |
|
CHTTPStatusForbidden
| |
|
CHTTPStatusNotFound
| |
|
CHTTPStatusSvcUnavail
|
-1 error value, this indicates a general I/O failure has occured. The most common cause of this error is that a corporate firewall is blocking the destination notification port.
For more information on HTTP status codes, see the following RFC:
http://www.internic.net/rfc/rfc1945.txt
The following constants specify the notification protocols used by the Notification API.
The API-defined constant CNtfnStatusDateBufLen specifies the required length (including the NULL terminator) of the buffers you specify for the postDate and dispositionDate arguments of the GetNtfnStatus(), GetPrefetchStatus(), GetAlertStatus() methods.