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

33 lines
602 B
Mathematica
Raw Normal View History

2014-07-10 16:11:09 +02:00
#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