Skip to main content
Table of Contents

TTMSFNCWebPushDB.UpdateSubscription Method

Replaces the stored subscription payload for the first record matching the given user.

API unit family: TMS.TMSFNCWebPushDB Declaring type: TTMSFNCWebPushDB Inherited from: TTMSFNCCustomWebPushDB

Overloads

Overload 1

Replaces the stored subscription payload for the first record matching the given user.

TMS.TMSFNCWebPushDB.hppPascalC++
procedure UpdateSubscription(AUserID: string; ANewInfo: TTMSFNCWebPushSubscription); overload;
void __fastcall UpdateSubscription(System::UnicodeString AUserID, const TTMSFNCWebPushSubscription &ANewInfo)/* overload */;

Remarks

Requires the user identifier field to be active. The update is applied only when the before-update event allows it.

Parameters

Name Description
AUserID User identifier whose record is updated.
ANewInfo New subscription payload to store.

Overload 2

Replaces the stored subscription payload for the record matching both the given user and browser identifiers.

TMS.TMSFNCWebPushDB.hppPascalC++
procedure UpdateSubscription(AUserID, ABrowserID: string; ANewInfo: TTMSFNCWebPushSubscription); overload;
void __fastcall UpdateSubscription(System::UnicodeString AUserID, System::UnicodeString ABrowserID, const TTMSFNCWebPushSubscription &ANewInfo)/* overload */;

Remarks

Requires both identifier fields to be active. The update is applied only when the before-update event allows it.

Parameters

Name Description
AUserID User identifier to match.
ABrowserID Browser or device identifier to match.
ANewInfo New subscription payload to store.

Overload 3

Replaces a subscription identified by its current endpoint with new payload values.

TMS.TMSFNCWebPushDB.hppPascalC++
procedure UpdateSubscription(AOldInfo, ANewInfo: TTMSFNCWebPushSubscription); overload;
void __fastcall UpdateSubscription(const TTMSFNCWebPushSubscription &AOldInfo, const TTMSFNCWebPushSubscription &ANewInfo)/* overload */;

Remarks

The update is applied only when the before-update event allows it.

Parameters

Name Description
AOldInfo Existing subscription whose endpoint locates the record to update.
ANewInfo New subscription payload to store.