1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/TGMusicPlayerItem.h
2016-02-25 01:03:51 +01:00

22 lines
657 B
Objective-C

#import <Foundation/Foundation.h>
@class TGUser;
@class TGMessage;
@class TGDocumentMediaAttachment;
@interface TGMusicPlayerItem : NSObject
@property (nonatomic, strong, readonly) id<NSObject, NSCopying> key;
@property (nonatomic, strong, readonly) id media;
@property (nonatomic, readonly) int64_t peerId;
@property (nonatomic, strong, readonly) TGUser *author;
@property (nonatomic, readonly) int32_t date;
+ (instancetype)itemWithMessage:(TGMessage *)message author:(TGUser *)author;
- (instancetype)initWithKey:(id<NSObject, NSCopying>)key media:(id)media peerId:(int64_t)peerId author:(TGUser *)author date:(int32_t)date;
- (bool)isVoice;
@end