1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGButtonMenuItem.m
2014-07-10 18:11:09 +04:00

33 lines
602 B
Objective-C

#import "TGButtonMenuItem.h"
@implementation TGButtonMenuItem
@synthesize title = _title;
@synthesize subtype = _subtype;
@synthesize action = _action;
@synthesize enabled = _enabled;
- (id)init
{
self = [super initWithType:TGButtonMenuItemType];
if (self != nil)
{
_enabled = true;
}
return self;
}
- (id)initWithTitle:(NSString *)title subtype:(TGButtonMenuItemSubtype)subtype
{
self = [super initWithType:TGButtonMenuItemType];
if (self != nil)
{
_title = title;
_subtype = subtype;
_enabled = true;
}
return self;
}
@end