-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathULSongkickLoader.h
37 lines (31 loc) · 1 KB
/
ULSongkickLoader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// ULSongkickLoader.h
// United Libs
//
// Created by Mikhail Larionov on 6/21/13.
//
//
#import <Foundation/Foundation.h>
#define SONGKICK_MAX_EVENTS 250
#define SONGKICK_MAX_DISTANCE 30000 // meters
#define SONGKICK_PERIOD_STEP1 2
#define SONGKICK_PERIOD_STEP2 6
#define SONGKICK_PERIOD_STEP3 14
@interface ULSongkickLoader : NSObject <NSURLConnectionDelegate>
{
Boolean modeSingleEvent;
NSUInteger currentPeriod;
NSUInteger previousPeriod;
NSUInteger maxPeriod;
id resultTarget;
SEL resultCallback;
NSMutableData* receivedData;
NSMutableArray* eventsArray;
NSUInteger page;
CLLocation *coordinates;
NSUInteger totalLoadedCount;
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
- (void)loadData:(CLLocationCoordinate2D)coords forPeriod:(NSUInteger)days target:(id)target selector:(SEL)callback;
- (void)loadEvent:(NSString*)eventId target:(id)target selector:(SEL)callback;
@end