This commit is contained in:
giuseppenuc committed 2016-02-24 16:56:39 +01:00
1 parent d281d765ea
commit 5b074a5176
1261 files changed
+199158 -7303

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/**
* XEP-0223 : Persistent Storage of Private Data via PubSub
*
* This specification defines best practices for using the XMPP publish-subscribe extension to
* persistently store private information such as bookmarks and client configuration options.
*
* http://xmpp.org/extensions/xep-0223.html
**/
#import <Foundation/Foundation.h>
@interface XEP_0223 : NSObject
/**
* This method returns the recommended configuration options to configure a pubsub node for storing private data.
* It may be passed directly to the publishToNoe:::: method of XMPPPubSub.
**/
+ (NSDictionary *)privateStoragePubSubOptions;
@end
+20
View File
@@ -0,0 +1,20 @@
/**
* XEP-0223 : Persistent Storage of Private Data via PubSub
*
* This specification defines best practices for using the XMPP publish-subscribe extension to
* persistently store private information such as bookmarks and client configuration options.
*
* http://xmpp.org/extensions/xep-0223.html
**/
#import "XEP_0223.h"
@implementation XEP_0223
+ (NSDictionary *)privateStoragePubSubOptions
{
return @{ @"pubsub#persist_items" : @(YES),
@"pubsub#access_model" : @"whitelist" };
}
@end