Swiftgram/Telegram/Watch/WatchCommonWatch/TGBridgeBotCommandInfo.m
2020-02-19 18:44:10 +04:00

26 lines
744 B
Objective-C

#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