Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.625 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#import <Foundation/Foundation.h>
#import "MKNetworkEngine.h"

@interface HTTPEngine : MKNetworkEngine

typedef void (^PostsResponseBlock)(NSMutableArray *);
typedef void (^EventsResponseBlock)(NSMutableArray *);

-(MKNetworkOperation*) posts:
                onCompletion:(PostsResponseBlock) completionBlock
                     onError:(MKNKErrorBlock) errorBlock;

-(MKNetworkOperation*) eventsFrom:(NSDate *) startDate
                           to:(NSDate *) endDate
                           onCompletion:(EventsResponseBlock) completionBlock
                                onError:(MKNKErrorBlock) errorBlock;
@end
Something went wrong with that request. Please try again.