Swiftgram/submodules/WatchCommon/Watch/Sources/TGBridgeReplyMarkupMediaAttachment.m
2019-09-01 13:29:50 +04:00

29 lines
675 B
Objective-C

#import "TGBridgeReplyMarkupMediaAttachment.h"
const NSInteger TGBridgeReplyMarkupMediaAttachmentType = 0x5678acc1;
NSString *const TGBridgeReplyMarkupMediaMessageKey = @"replyMarkup";
@implementation TGBridgeReplyMarkupMediaAttachment
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
if (self != nil)
{
_replyMarkup = [aDecoder decodeObjectForKey:TGBridgeReplyMarkupMediaMessageKey];
}
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:self.replyMarkup forKey:TGBridgeReplyMarkupMediaMessageKey];
}
+ (NSInteger)mediaType
{
return TGBridgeReplyMarkupMediaAttachmentType;
}
@end