Inherits from NSObject
Declared in QBPrivacyItem.h

Overview

QBPrivacyItem class interface. This class structure represents privacy object for managing privacy lists.

Tasks

Properties

)

@property (assign, nonatomic, readonly) QBPrivacyAction privacyAction DEPRECATED_MSG_ATTRIBUTE ( "Deprecated in 2.7.6. Use 'allow' instead." )
Discussion

Action value to perform.

Warning: Deprecated in 2.7.6. Use ‘allow’ instead.

Declared In

QBPrivacyItem.h

allow

@property (assign, nonatomic, readonly, getter=isAllowed) BOOL allow
Discussion

Determines whether item’s action is allow or deny.

Declared In

QBPrivacyItem.h

mutualBlock

@property (assign, nonatomic) BOOL mutualBlock
Discussion

Determines whether block is mutual.

By default user, who is blocking, can send messages and presences to the one he blocked without any errors. To achieve a two-way block set this property to YES. After that the user, who is blocking, will receive errors when will try to communicate with blocked user.

Declared In

QBPrivacyItem.h

privacyType

@property (assign, nonatomic, readonly) QBPrivacyType privacyType
Discussion

QBPrivacyItemType type value.

Declared In

QBPrivacyItem.h

userID

@property (assign, nonatomic, readonly) NSUInteger userID
Discussion

User ID.

Declared In

QBPrivacyItem.h

Class Methods

new

+ (instancetype)new

Instance Methods

init

- (instancetype)init

initWithPrivacyType:userID:allow:

- (nullable instancetype)initWithPrivacyType:(QBPrivacyType)privacyType userID:(NSUInteger)userID allow:(BOOL)allow
Discussion

Init with privacy type, userID and privacy action.

Parameters

privacyType

QBPrivacyType value (user ID, group user ID, subscription)

userID

user ID

allow

determines whether action is to allow or deny user

Return Value

QBPrivacyItem instance

Declared In

QBPrivacyItem.h

initWithPrivacyType:valueForType:privacyAction:

- (instancetype)initWithPrivacyType:(QBPrivacyType)privacyType valueForType:(NSUInteger)valueForType privacyAction:(QBPrivacyAction)privacyAction
Discussion

Init with privacy type, value and privacy action.

Warning: Deprecated in 2.7.6. Use ‘initWithPrivacyType:userID:privacyAction:mutualBlock:’ instead.

Parameters

privacyType

QBPrivacyType privacy type value

privacyAction

QBPrivacyAction privacy action value

value

value for selected privacy type

Return Value

QBPrivacyItem instance

Declared In

QBPrivacyItem.h

initWithType:valueForType:action:

- (instancetype)initWithType:(QBPrivacyItemType)type valueForType:(NSUInteger)valueForType action:(QBPrivacyItemAction)action
Discussion

Init with type, value and action.

Warning: Deprecated in 2.7.4. Use ‘initWithPrivacyType:value:privacyAction:’ instead.

Parameters

type

QBPrivacyItemType type value

valueForType

value for selected type

action

QBPrivacyItemAction action value to perform

Return Value

QBPrivacyItem instance

Declared In

QBPrivacyItem.h