NotificationsQuery

@objcMembers
@objc(GetSocialNotificationsQuery)
public final class NotificationsQuery : NSObject

Describe a query to get notifications.

  • Notification types.

    Declaration

    Swift

    public var types: [String]
  • Notification statuses.

    Declaration

    Swift

    public var statuses: [String]
  • Notification actions.

    Declaration

    Swift

    public var actions: [String]
  • Create query to get notifications with specified statuses.

    Declaration

    Swift

    public static func withStatuses(_ statuses: [String]) -> NotificationsQuery

    Return Value

    New NotificationsQuery instance.

  • Create query to get notifications with any statuses.

    Declaration

    Swift

    public static func withAllStatuses() -> NotificationsQuery

    Return Value

    New NotificationsQuery instance.

  • Append type to query.

    Declaration

    Swift

    @objc(appendType:)
    public func appendType(_ type: String) -> NotificationsQuery

    Parameters

    type

    Type to append.

    Return Value

    Modified NotificationsQuery instance.

  • Append status to query.

    Declaration

    Swift

    @objc(appendStatus:)
    public func appendStatus(_ status: String) -> NotificationsQuery

    Parameters

    status

    Type to append.

    Return Value

    Modified NotificationsQuery instance.

  • Append action to query.

    Declaration

    Swift

    @objc(appendAction:)
    public func appendAction(_ action: String) -> NotificationsQuery

    Parameters

    action

    Type to append.

    Return Value

    Modified NotificationsQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }