1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGSharedMediaCacheSignals.h
2016-02-25 01:03:51 +01:00

22 lines
725 B
Objective-C

#import <SSignalKit/SSignalKit.h>
typedef enum {
TGSharedMediaCacheItemTypeNone = -1,
TGSharedMediaCacheItemTypePhoto = 0,
TGSharedMediaCacheItemTypeVideo = 1,
TGSharedMediaCacheItemTypeFile = 2,
TGSharedMediaCacheItemTypePhotoVideo = 3,
TGSharedMediaCacheItemTypePhotoVideoFile = 4,
TGSharedMediaCacheItemTypeAudio = 5,
TGSharedMediaCacheItemTypeLink = 6,
TGSharedMediaCacheItemTypeSticker = 7,
TGSharedMediaCacheItemTypeGif = 8,
TGSharedMediaCacheItemTypeVoiceNote = 9
} TGSharedMediaCacheItemType;
@interface TGSharedMediaCacheSignals : NSObject
+ (SSignal *)cachedMediaForPeerId:(int64_t)peerId itemType:(TGSharedMediaCacheItemType)itemType important:(bool)important;
@end