mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-26 23:39:12 +00:00
32 lines
1.3 KiB
Objective-C
32 lines
1.3 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
typedef enum {
|
|
TGMediaOriginTypeMessage,
|
|
TGMediaOriginTypeSticker,
|
|
TGMediaOriginTypeProfilePhoto
|
|
} TGMediaOriginType;
|
|
|
|
@interface TGMediaOriginInfo : NSObject
|
|
|
|
@property (nonatomic, readonly) TGMediaOriginType type;
|
|
|
|
@property (nonatomic, readonly, strong) NSData *fileReference;
|
|
@property (nonatomic, readonly, strong) NSDictionary *fileReferences;
|
|
|
|
@property (nonatomic, readonly, strong) NSNumber *cid;
|
|
@property (nonatomic, readonly, strong) NSNumber *mid;
|
|
|
|
@property (nonatomic, readonly, strong) NSNumber *stickerPackId;
|
|
@property (nonatomic, readonly, strong) NSNumber *stickerPackAccessHash;
|
|
|
|
@property (nonatomic, readonly, strong) NSNumber *profilePhotoUserId;
|
|
@property (nonatomic, readonly, strong) NSNumber *profilePhotoOffset;
|
|
|
|
- (NSData *)fileReferenceForVolumeId:(int64_t)volumeId localId:(int32_t)localId;
|
|
|
|
+ (instancetype)mediaOriginInfoWithFileReference:(NSData *)fileReference fileReferences:(NSDictionary *)fileReferences cid:(int64_t)cid mid:(int32_t)mid;
|
|
+ (instancetype)mediaOriginInfoWithFileReference:(NSData *)fileReference stickerPackId:(int64_t)packId accessHash:(int64_t)accessHash;
|
|
+ (instancetype)mediaOriginInfoWithFileReference:(NSData *)fileReference fileReferences:(NSDictionary *)fileReferences userId:(int32_t)userId offset:(int32_t)offset;
|
|
|
|
@end
|