ObjXMPP  Diff

Differences From Artifact [b424f574a0]:

To Artifact [e89fc64008]:


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

41

42


43

44


45

46


47

48
49
50
51
52
53
54
55
56
57
58

#import <ObjFW/ObjFW.h>

OF_ASSUME_NONNULL_BEGIN

@class XMPPJID;

/**
 * \brief A class for representing an item in the roster.
 */
@interface XMPPRosterItem: OFObject
{
	XMPPJID *_JID;
	OFString *_name;
	OFString *_subscription;
	OFArray *_groups;
}


/// \brief The JID of the roster item

@property (nonatomic, copy) XMPPJID *JID;


/// \brief The name of the roster item to show to the user

@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *name;


/// \brief The subscription for the roster item

@property (nonatomic, copy) OFString *subscription;


/// \brief An array of groups in which the roster item is

@property (nonatomic, copy) OFArray OF_GENERIC(OFString *) *groups;

/**
 * \brief Creates a new autoreleased roster item.
 *
 * \return A new autoreleased roster item.
 */
+ (instancetype)rosterItem;
@end

OF_ASSUME_NONNULL_END







|
|









>
|
>

>
>
|
>

>
>
|
>

>
>
|
>


|
|

|





23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

#import <ObjFW/ObjFW.h>

OF_ASSUME_NONNULL_BEGIN

@class XMPPJID;

/*!
 * @brief A class for representing an item in the roster.
 */
@interface XMPPRosterItem: OFObject
{
	XMPPJID *_JID;
	OFString *_name;
	OFString *_subscription;
	OFArray *_groups;
}

/*!
 * The JID of the roster item.
 */
@property (nonatomic, copy) XMPPJID *JID;

/*!
 * The name of the roster item to show to the user.
 */
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *name;

/*!
 * The subscription for the roster item.
 */
@property (nonatomic, copy) OFString *subscription;

/*!
 * An array of groups in which the roster item is.
 */
@property (nonatomic, copy) OFArray OF_GENERIC(OFString *) *groups;

/*!
 * @brief Creates a new autoreleased roster item.
 *
 * @return A new autoreleased roster item.
 */
+ (instancetype)rosterItem;
@end

OF_ASSUME_NONNULL_END