mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
30 lines
430 B
Objective-C
30 lines
430 B
Objective-C
#import "TGSwitchItem.h"
|
|
|
|
@implementation TGSwitchItem
|
|
|
|
@synthesize title = _title;
|
|
@synthesize isOn = _isOn;
|
|
|
|
@synthesize action = _action;
|
|
|
|
- (id)init
|
|
{
|
|
self = [super initWithType:TGSwitchItemType];
|
|
if (self != nil)
|
|
{
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (id)initWithTitle:(NSString *)title
|
|
{
|
|
self = [super initWithType:TGSwitchItemType];
|
|
if (self != nil)
|
|
{
|
|
_title = title;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|