TM-SGNL-iOS/SignalServiceKit/Messages/Stickers/StickerInfo.h
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

32 lines
830 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;
+ (NSString *)keyWithPackId:(NSData *)packId stickerId:(UInt32)stickerId;
@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