Communities

@objcMembers
@objc(GetSocialCommunities)
public class Communities : NSObject

Interface for community related methods.

Friends

Users

Follow/Unfollow

Feeds

Topics

Groups

Chat

Polls

  • Add new votes to an activity, existing votes will be kept.

    • pollOptionIds: Votes to add.
    • activityId: To add the votes to.
    • success: Called if operation succeeded.
    • failure: Called if operation failed.

    Declaration

    Swift

    @objc(addVotes:toActivityWithId:success:failure:)
    public static func addVotes(_ pollOptionIds: Set<String>, activityId: String, success: @escaping SuccessCallback, failure: @escaping FailureCallback)
  • Set votes to an activity, existing votes will be removed.

    • pollOptionIds: Votes to add.
    • activityId: To add the votes to.
    • success: Called if operation succeeded.
    • failure: Called if operation failed.

    Declaration

    Swift

    @objc(setVotes:toActivityWithId:success:failure:)
    public static func setVotes(_ pollOptionIds: Set<String>, activityId: String, success: @escaping SuccessCallback, failure: @escaping FailureCallback)
  • Remove votes from an activity.

    • pollOptionIds: Votes to remove.
    • activityId: To remove the votes from.
    • success: Called if operation succeeded.
    • failure: Called if operation failed.

    Declaration

    Swift

    @objc(removeVotes:fromActivityWithId:success:failure:)
    public static func removeVotes(_ pollOptionIds: Set<String>, activityId: String, success: @escaping SuccessCallback, failure: @escaping FailureCallback)
  • Get votes.

    • query: Query parameters.
    • success: Called with reactions.
    • failure: Called if operation failed.

    Declaration

    Swift

    @objc(votesWithQuery:success:failure:)
    public static func votes(_ query: VotesPagingQuery, success: @escaping ResultCallback<VotesPagingResult>, failure: @escaping FailureCallback)
  • Search.

    Declaration

    Swift

    @objc(searchWithQuery:success:failure:)
    public static func search(_ query: SearchPagingQuery, success: @escaping ResultCallback<SearchResult>, failure: @escaping FailureCallback)

    Parameters

    query

    Query parameter.

    success

    Called with results.

    failure

    Called if operation failed.