Signal-iOS/SignalServiceKit/src/Devices/OWSStickerPackSyncMessage.h
2021-06-07 11:11:30 -04:00

31 lines
954 B
Objective-C

//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
//
#import <SignalServiceKit/OWSOutgoingSyncMessage.h>
#import <SignalServiceKit/StickerInfo.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, StickerPackOperationType) {
StickerPackOperationType_Install,
StickerPackOperationType_Remove,
};
@interface OWSStickerPackSyncMessage : OWSOutgoingSyncMessage
+ (instancetype)new NS_UNAVAILABLE;
- (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 NS_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END