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

22 lines
657 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import <Foundation/Foundation.h>
2016-02-25 01:03:51 +01:00
@class TGUser;
2015-10-01 18:19:52 +02:00
@class TGMessage;
@class TGDocumentMediaAttachment;
@interface TGMusicPlayerItem : NSObject
@property (nonatomic, strong, readonly) id<NSObject, NSCopying> key;
2016-02-25 01:03:51 +01:00
@property (nonatomic, strong, readonly) id media;
2015-10-01 18:19:52 +02:00
@property (nonatomic, readonly) int64_t peerId;
2016-02-25 01:03:51 +01:00
@property (nonatomic, strong, readonly) TGUser *author;
@property (nonatomic, readonly) int32_t date;
2015-10-01 18:19:52 +02:00
2016-02-25 01:03:51 +01:00
+ (instancetype)itemWithMessage:(TGMessage *)message author:(TGUser *)author;
2015-10-01 18:19:52 +02:00
2016-02-25 01:03:51 +01:00
- (instancetype)initWithKey:(id<NSObject, NSCopying>)key media:(id)media peerId:(int64_t)peerId author:(TGUser *)author date:(int32_t)date;
- (bool)isVoice;
2015-10-01 18:19:52 +02:00
@end