mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
546 B
Objective-C
20 lines
546 B
Objective-C
#import "LegacyComponentsContext.h"
|
|
|
|
@implementation LegacyComponentsActionSheetAction
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action {
|
|
return [self initWithTitle:title action:action type:LegacyComponentsActionSheetActionTypeGeneric];
|
|
}
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action type:(LegacyComponentsActionSheetActionType)type {
|
|
self = [super init];
|
|
if (self != nil) {
|
|
_title = title;
|
|
_action = action;
|
|
_type = type;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|