Signal-iOS/SignalServiceKit/Messages/Stickers/StickerInfo.h
2024-03-27 12:22:52 -05:00

32 lines
756 B
Objective-C

//
// Copyright 2019 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
#import <Mantle/MTLModel+NSCoding.h>
NS_ASSUME_NONNULL_BEGIN
@class StickerPackInfo;
@interface StickerInfo : MTLModel
@property (nonatomic, readonly) NSData *packId;
@property (nonatomic, readonly) NSData *packKey;
@property (nonatomic, readonly) UInt32 stickerId;
- (instancetype)initWithPackId:(NSData *)packId packKey:(NSData *)packKey stickerId:(UInt32)stickerId;
- (NSString *)asKey;
@property (nonatomic, readonly) StickerPackInfo *packInfo;
// This can be used as a placeholder value, e.g. when initializing a non-nil var of a`MTLModel`.
@property (class, readonly, nonatomic) StickerInfo *defaultValue;
- (BOOL)isValid;
@end
NS_ASSUME_NONNULL_END