Signal-iOS/SignalServiceKit/src/Devices/OWSStickerPackSyncMessage.h
2019-09-16 15:48:41 -03:00

29 lines
857 B
Objective-C

//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
#import "OWSOutgoingSyncMessage.h"
#import "StickerInfo.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, StickerPackOperationType) {
StickerPackOperationType_Install,
StickerPackOperationType_Remove,
};
@interface OWSStickerPackSyncMessage : OWSOutgoingSyncMessage
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithThread:(TSThread *)thread NS_UNAVAILABLE;
- (instancetype)initWithTimestamp:(uint64_t)timestamp thread:(TSThread *)thread NS_UNAVAILABLE;
- (instancetype)initWithThread:(TSThread *)thread
packs:(NSArray<StickerPackInfo *> *)packs
operationType:(StickerPackOperationType)operationType;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END