2017-06-22 03:04:16 +02:00
|
|
|
//
|
2018-05-11 16:36:40 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-06-22 03:04:16 +02:00
|
|
|
//
|
2016-08-26 01:01:35 +02:00
|
|
|
|
|
|
|
#import "OWSOutgoingSyncMessage.h"
|
|
|
|
|
2016-08-27 00:07:54 +02:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-08-25 23:16:49 +02:00
|
|
|
@protocol ProfileManagerProtocol;
|
2018-05-11 16:36:40 +02:00
|
|
|
|
2017-06-22 03:04:16 +02:00
|
|
|
@class OWSIdentityManager;
|
2018-05-11 16:36:40 +02:00
|
|
|
@class SignalAccount;
|
2016-08-27 00:07:54 +02:00
|
|
|
|
2016-08-26 01:01:35 +02:00
|
|
|
@interface OWSSyncContactsMessage : OWSOutgoingSyncMessage
|
|
|
|
|
2018-05-11 16:36:40 +02:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
|
2017-08-26 23:45:05 +02:00
|
|
|
- (instancetype)initWithSignalAccounts:(NSArray<SignalAccount *> *)signalAccounts
|
|
|
|
identityManager:(OWSIdentityManager *)identityManager
|
2018-05-11 16:36:40 +02:00
|
|
|
profileManager:(id<ProfileManagerProtocol>)profileManager NS_DESIGNATED_INITIALIZER;
|
2017-06-22 03:04:16 +02:00
|
|
|
|
2018-06-07 17:52:39 +02:00
|
|
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
2018-08-07 18:57:48 +02:00
|
|
|
- (nullable NSData *)buildPlainTextAttachmentDataWithTransaction:(YapDatabaseReadTransaction *)transaction;
|
2016-08-26 01:01:35 +02:00
|
|
|
|
|
|
|
@end
|
2016-08-27 00:07:54 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|