1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Watch/Bridge/TGBridgeBotCommandInfo.m

25 lines
743 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGBridgeBotCommandInfo.h"
NSString *const TGBridgeBotCommandInfoCommandKey = @"command";
NSString *const TGBridgeBotCommandDescriptionKey = @"commandDescription";
@implementation TGBridgeBotCommandInfo
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
if (self != nil)
{
_command = [aDecoder decodeObjectForKey:TGBridgeBotCommandInfoCommandKey];
_commandDescription = [aDecoder decodeObjectForKey:TGBridgeBotCommandDescriptionKey];
}
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:self.command forKey:TGBridgeBotCommandInfoCommandKey];
[aCoder encodeObject:self.commandDescription forKey:TGBridgeBotCommandDescriptionKey];
}
@end