- Update
This commit is contained in:
1 parent
d281d765ea
commit
5b074a5176
1261 files changed
+199158
-7303
No files matched your search
@@ -0,0 +1,9 @@
|
||||
|
||||
#import "NSXMLElement+XMPP.h"
|
||||
|
||||
@interface NSXMLElement (XEP0352)
|
||||
|
||||
+ (instancetype)indicateInactiveElement;
|
||||
+ (instancetype)indicateActiveElement;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
#import "NSXMLElement+XEP_0352.h"
|
||||
|
||||
#define XMLNS_XMPP_CLIENT_STATE_INDICATION @"urn:xmpp:csi:0"
|
||||
|
||||
@implementation NSXMLElement (XEP0352)
|
||||
|
||||
+ (instancetype)indicateActiveElement
|
||||
{
|
||||
return [NSXMLElement elementWithName:@"active" xmlns:XMLNS_XMPP_CLIENT_STATE_INDICATION];
|
||||
}
|
||||
|
||||
+ (instancetype)indicateInactiveElement
|
||||
{
|
||||
return [NSXMLElement elementWithName:@"inactive" xmlns:XMLNS_XMPP_CLIENT_STATE_INDICATION];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user