mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
33 lines
602 B
Mathematica
33 lines
602 B
Mathematica
|
#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
|