Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (48 sloc) 2.661 kb
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
1 //
2 // MGTwitterEngineDelegate.h
3 // MGTwitterEngine
4 //
5 // Created by Matt Gemmell on 16/02/2008.
6 // Copyright 2008 Instinctive Code.
7 //
8
9 #import "MGTwitterEngineGlobalHeader.h"
c5be05d Steve Streza Added support for OAuth and an XAuth login API
stevestreza authored
10 @class OAToken;
66f80fe Added documentation and sample code for delivery options.
Craig Hockenberry authored
11
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
12 typedef enum _MGTwitterEngineDeliveryOptions {
13 // all results will be delivered as an array via statusesReceived: and similar delegate methods
14 MGTwitterEngineDeliveryAllResultsOption = 1 << 0,
15
16 // individual results will be delivered as a dictionary via the receivedObject: delegate method
17 MGTwitterEngineDeliveryIndividualResultsOption = 1 << 1,
18
19 // these options can be combined with the | operator
20 } MGTwitterEngineDeliveryOptions;
66f80fe Added documentation and sample code for delivery options.
Craig Hockenberry authored
21
22
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
23
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
24 @protocol MGTwitterEngineDelegate
25
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
26 // These delegate methods are called after a connection has been established
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
27 - (void)requestSucceeded:(NSString *)connectionIdentifier;
28 - (void)requestFailed:(NSString *)connectionIdentifier withError:(NSError *)error;
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
29
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
30 @optional
31
9463f27 Steve Streza Architectural support for TouchJSON
stevestreza authored
32 #if YAJL_AVAILABLE || TOUCHJSON_AVAILABLE
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
33 // This delegate method is called each time a new result is parsed from the connection and
34 // the deliveryOption is configured for MGTwitterEngineDeliveryIndividualResults.
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
35 - (void)receivedObject:(NSDictionary *)dictionary forRequest:(NSString *)connectionIdentifier;
36 #endif
37
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
38 // These delegate methods are called after all results are parsed from the connection. If
39 // the deliveryOption is configured for MGTwitterEngineDeliveryAllResults (the default), a
40 // collection of all results is also returned.
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
41 - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)connectionIdentifier;
42 - (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)connectionIdentifier;
43 - (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier;
be2b3e9 Clint Added first of user/lists API methods.
catsby authored
44 - (void)userListsReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier;
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
45 - (void)miscInfoReceived:(NSArray *)miscInfo forRequest:(NSString *)connectionIdentifier;
9463f27 Steve Streza Architectural support for TouchJSON
stevestreza authored
46 #if YAJL_AVAILABLE || TOUCHJSON_AVAILABLE
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
47 - (void)searchResultsReceived:(NSArray *)searchResults forRequest:(NSString *)connectionIdentifier;
d92366b First pass at implementing the search API.
Craig Hockenberry authored
48 #endif
8784e62 Robert McGovern Added initial support for the Social Graph API requests.
tarasis authored
49 - (void)socialGraphInfoReceived:(NSArray *)socialGraphInfo forRequest:(NSString *)connectionIdentifier;
c5be05d Steve Streza Added support for OAuth and an XAuth login API
stevestreza authored
50 - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString *)connectionIdentifier;
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
51
c7b86e9 Matt Gemmell We now no longer obfuscate the fact that this code compiles for iPhone t...
authored
52 #if TARGET_OS_IPHONE
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
53 - (void)imageReceived:(UIImage *)image forRequest:(NSString *)connectionIdentifier;
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
54 #else
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
55 - (void)imageReceived:(NSImage *)image forRequest:(NSString *)connectionIdentifier;
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
56 #endif
57
fe716cd Added delivery options for delegate callbacks.
Craig Hockenberry authored
58 // This delegate method is called whenever a connection has finished.
56c3fd5 Steve Streza Added connectionStarted: delegate method
stevestreza authored
59 - (void)connectionStarted:(NSString *)connectionIdentifier;
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
60 - (void)connectionFinished:(NSString *)connectionIdentifier;
1f94767 Added new delegate method that is called whenever a connection is finish...
Craig Hockenberry authored
61
96b2053 Matt Gemmell MGTwitterEngine re-import.
authored
62 @end
Something went wrong with that request. Please try again.