buddySubscription (property)

This is a list of the subscription status for the buddy.

Syntax

- (int)buddySubscription:(int)buddyIndex;

/* Possible Values */
ST_NONE(0),
ST_TO(1),
ST_FROM(2),
ST_BOTH(3),
ST_REMOVE(4)
public func buddySubscription(buddyIndex: Int32) throws -> XmppBuddySubscriptions
public enum XmppBuddySubscriptions : Int32 { case stNone = 0 case stTo = 1 case stFrom = 2 case stBoth = 3 case stRemove = 4 }

Default Value

0

Remarks

This is a list of the subscription status for the buddy.

After a Sync event is fired, this property will contain all of the types of subscriptions for the buddy. They are defined as follows:

stNone (0) no subscription
stTo (1) the buddy has a subscription to this entity.
stFrom (2) this entity has a subscription to the buddy
stBoth (3) subscription is both to and from
stRemove (4) the item is to be removed from the list

The BuddyIndex parameter specifies the index of the item in the array. The size of the array is controlled by the BuddyCount property.

This property is read-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 iOS Edition - Version 20.0 [Build 8265]