1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Watch/Bridge/TGBridgeAudioMediaAttachment+TGAudioMediaAttachment.m
2015-10-01 19:19:52 +03:00

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