SFSDKFetchNotificationsRequestBuilder Class Reference

Inherits from NSObject
Declared in SFRestAPI+Notifications.h

Overview

Use this interface to create a RestRequest object that calls the Notifications REST API.

– setSize:

Sets the number of notifications to fetch. Max and default are 20.

- (SFSDKFetchNotificationsRequestBuilder *)setSize:(NSUInteger)size

Parameters

size

Number of notifications to fetch.

Declared In

SFRestAPI+Notifications.h

– setBefore:

Notifications occurring before the provided date will be fetched. Shouldn’t be used with setAfter.

- (SFSDKFetchNotificationsRequestBuilder *)setBefore:(NSDate *)date

Parameters

date

Before date. If unspecified, defaults to current date and time.

Declared In

SFRestAPI+Notifications.h

– setAfter:

Notifications occurring after the provided date will be fetched. Shouldn’t be used with setBefore.

- (SFSDKFetchNotificationsRequestBuilder *)setAfter:(NSDate *)date

Parameters

date

After date.

Declared In

SFRestAPI+Notifications.h

– buildFetchNotificationsRequest:

Returns a request to fetch notifications based on values from the builder.

- (SFRestRequest *)buildFetchNotificationsRequest:(NSString *)apiVersion

Parameters

apiVersion

API version.

Declared In

SFRestAPI+Notifications.h