mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
18 lines
544 B
Objective-C
18 lines
544 B
Objective-C
#import "TGBridgeAudioMediaAttachment+TGAudioMediaAttachment.h"
|
|
|
|
@implementation TGBridgeAudioMediaAttachment (TGAudioMediaAttachment)
|
|
|
|
+ (TGBridgeAudioMediaAttachment *)attachmentWithTGAudioMediaAttachment:(TGAudioMediaAttachment *)attachment
|
|
{
|
|
if (attachment == nil)
|
|
return nil;
|
|
|
|
TGBridgeAudioMediaAttachment *bridgeAttachment = [[TGBridgeAudioMediaAttachment alloc] init];
|
|
bridgeAttachment.duration = attachment.duration;
|
|
bridgeAttachment.fileSize = attachment.fileSize;
|
|
|
|
return bridgeAttachment;
|
|
}
|
|
|
|
@end
|