session-ios/SignalServiceKit/src/Util/OWSSyncManagerProtocol.h

28 lines
736 B
C
Raw Normal View History

2018-10-16 22:02:37 +02:00
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@class AnyPromise;
@class SignalAccount;
@class YapDatabaseReadTransaction;
2018-10-16 22:02:37 +02:00
@protocol OWSSyncManagerProtocol <NSObject>
- (void)sendConfigurationSyncMessage;
- (AnyPromise *)syncLocalContact __attribute__((warn_unused_result));
- (AnyPromise *)syncContact:(NSString *)hexEncodedPubKey transaction:(YapDatabaseReadTransaction *)transaction;
- (AnyPromise *)syncAllContacts __attribute__((warn_unused_result));
- (AnyPromise *)syncContactsForSignalAccounts:(NSArray<SignalAccount *> *)signalAccounts __attribute__((warn_unused_result));
2020-02-12 06:31:37 +01:00
- (AnyPromise *)syncAllGroups __attribute__((warn_unused_result));
2018-10-16 22:02:37 +02:00
@end
NS_ASSUME_NONNULL_END