mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
41 lines
961 B
Objective-C
41 lines
961 B
Objective-C
#import "TGTimelineRemoveItemsRequestActor.h"
|
|
|
|
#import "TGTelegraph.h"
|
|
|
|
@implementation TGTimelineRemoveItemsRequestActor
|
|
|
|
+ (NSString *)genericPath
|
|
{
|
|
return @"/tg/timeline/@/removeItems/@";
|
|
}
|
|
|
|
- (id)initWithPath:(NSString *)path
|
|
{
|
|
self = [super initWithPath:path];
|
|
if (self != nil)
|
|
{
|
|
NSRange range = [self.path rangeOfString:@")/removeItems/"];
|
|
int timelineId = [[self.path substringWithRange:NSMakeRange(14, range.location - 14)] intValue];
|
|
self.requestQueueName = [NSString stringWithFormat:@"timeline/%d", timelineId];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)execute:(NSDictionary *)__unused options
|
|
{
|
|
TGLog(@"Method currently unsupported");
|
|
[ActionStageInstance() actionFailed:self.path reason:-1];
|
|
}
|
|
|
|
- (void)removeTimelineItemsSuccess
|
|
{
|
|
[ActionStageInstance() actionCompleted:self.path result:nil];
|
|
}
|
|
|
|
- (void)removeTimelineItemsFailed
|
|
{
|
|
[ActionStageInstance() actionFailed:self.path reason:-1];
|
|
}
|
|
|
|
@end
|