GetSocialActivitiesQuery Class Reference

Inherits from NSObject
Declared in GetSocialActivitiesQuery.h

Properties and Methods

+ postsForGlobalFeed

Creates an GetSocialActivitiesQuery instance for retrieving post of global activity feed.

+ (instancetype)postsForGlobalFeed

Return Value

new instance.

Declared In

GetSocialActivitiesQuery.h

+ postsForFeed:

Creates an GetSocialActivitiesQuery instance for retrieving post of the specified activity feed.

+ (instancetype)postsForFeed:(NSString *)feed

Parameters

feed

id of activity feed.

Return Value

new instance.

Declared In

GetSocialActivitiesQuery.h

+ commentsToPost:

Creates an GetSocialActivitiesQuery instance for retrieving comments posted for the specified activity post.

+ (instancetype)commentsToPost:(GetSocialId)activityId

Parameters

activityId

id of activity post.

Return Value

new instance.

Declared In

GetSocialActivitiesQuery.h

– setLimit:

Sets maximum size of the returned result.

- (void)setLimit:(int)limit

Parameters

limit

maximum size

Declared In

GetSocialActivitiesQuery.h

– setFilter:activityId:

Sets filter for query.

- (void)setFilter:(GetSocialActivitiesFilter)filter activityId:(GetSocialId)activityId

Parameters

filter

filter to use.

activityId

activity id used by the filter.

Declared In

GetSocialActivitiesQuery.h

– setFilterByUser:

Set filter by user ID.

- (void)setFilterByUser:(GetSocialId)userId

Parameters

userId

user identified

Declared In

GetSocialActivitiesQuery.h

– setIsFriendsFeed:

Activities of your friends and your own.

- (void)setIsFriendsFeed:(BOOL)friendsFeed

Parameters

friendsFeed

is only friends feed or not.

Declared In

GetSocialActivitiesQuery.h

– setTags:

Activities that contains tags from list.

- (void)setTags:(NSArray *)tags

Parameters

tags

tags to be filtered by.

Declared In

GetSocialActivitiesQuery.h

– init

Init method, should not be called.

- (instancetype)init

Declared In

GetSocialActivitiesQuery.h

Constants

GetSocialActivitiesFilter

Defines query types.

typedef NS_ENUM(NSUInteger, GetSocialActivitiesFilter ) {
    ActivitiesNoFilter = 0,
    ActivitiesBefore,
    ActivitiesAfter,
};

Defined Values

// No filter.
ActivitiesNoFilter = 0
// Activities created before the specified activity.
ActivitiesBefore
// Activities created after the specified activity.
ActivitiesAfter