GetSocialNotificationsQuery Class Reference

Inherits from NSObject
Declared in GetSocialNotificationsQuery.h

Properties and Methods

+ withStatuses:

Query to get notifications with the provided statuses.

+ (instancetype)withStatuses:(NSArray<GetSocialNotificationStatus> *)statuses

Parameters

statuses

statuses to find

Declared In

GetSocialNotificationsQuery.h

+ withAllStatuses

Query to get all notifications.

+ (instancetype)withAllStatuses

Declared In

GetSocialNotificationsQuery.h

+ readAndUnread

Query to get all notifications. (Deprecated: Use withStatuses.)

+ (instancetype)readAndUnread

Declared In

GetSocialNotificationsQuery.h

+ read

Query to get all read notifications. (Deprecated: Use withStatuses.)

+ (instancetype)read

Declared In

GetSocialNotificationsQuery.h

+ unread

Query to get all unread notifications. (Deprecated: Use withStatuses.)

+ (instancetype)unread

Declared In

GetSocialNotificationsQuery.h

– setTypes:

Set notificaton types.

- (void)setTypes:(NSArray<GetSocialNotificationType> *)types

Parameters

types

notification types. Check @see GetSocialNotificationType enum for available notification types.

Declared In

GetSocialNotificationsQuery.h

– setAllTypes

Sets all the available notification types.

- (void)setAllTypes

Declared In

GetSocialNotificationsQuery.h

– setFilter:notificationId:

Sets filter.

- (void)setFilter:(GetSocialNotificationsFilter)filter notificationId:(GetSocialId)notificationId

Parameters

filter

filter object

notificationId

id of notification

Declared In

GetSocialNotificationsQuery.h

– setLimit:

Max. number of returned items.

- (void)setLimit:(int)limit

Parameters

limit

limit

Declared In

GetSocialNotificationsQuery.h

– setActions:

Filter by actions.

- (void)setActions:(NSArray<GetSocialActionType> *)actions

Parameters

actions

array of possible notification actions.

Declared In

GetSocialNotificationsQuery.h

Constants

GetSocialNotificationsFilter

Defines query types.

typedef NS_ENUM(NSUInteger, GetSocialNotificationsFilter ) {
    NotificationsNoFilter = 0,
    NotificationsBefore,
    NotificationsAfter,
};

Defined Values

// No filter.
NotificationsNoFilter = 0
// Notifications created before the specified activity.
NotificationsBefore
// Notifications created after the specified activity.
NotificationsAfter