Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (76 sloc) 4.854 kb
96b2053 @mattgemmell MGTwitterEngine re-import.
authored
1 //
2 // MGTwitterEngineDelegate.h
3 // MGTwitterEngine
4 //
5 // Created by Matt Gemmell on 17/02/2008.
6 // Copyright 2008 Instinctive Code.
7 //
8
9 #import "MGTwitterEngineGlobalHeader.h"
10
11 typedef enum _MGTwitterRequestType {
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
12 MGTwitterPublicTimelineRequest = 0, // latest statuses from the public timeline
2b73398 @justin Added support for the home timeline, which includes retweets by your fol...
justin authored
13 MGTwitterHomeTimelineRequest, // latest statuses from the home timeline
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
14 MGTwitterFollowedTimelineRequest, // latest statuses from the people that the current users follows
15 MGTwitterUserTimelineRequest, // statuses archive for the current user
16 MGTwitterUserTimelineForUserRequest, // statuses archive for the specified user
17 MGTwitterUpdateGetRequest, // get a status update for the specified id
18 MGTwitterUpdateSendRequest, // send a new update for the current user
19 MGTwitterUpdateDeleteRequest, // delete an update for the current user using the specified id
20 MGTwitterRepliesRequest, // latest reply status for the current user
1a61a5c support for sending retweets
Michael Tomasello authored
21 MGTwitterRetweetSendRequest, // send a new retweet for the current user
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
22 MGTwitterFeaturedUsersRequest, // latest status from featured users
23 MGTwitterFriendUpdatesRequest, // last status for the people that the current user follows
24 MGTwitterFriendUpdatesForUserRequest, // last status for the people that the specified user follows
25 MGTwitterFollowerUpdatesRequest, // last status for the people that follow the current user
26 MGTwitterUserInformationRequest, // user information using the specified id or email
7be30a3 @magicseth support getting bulk information about users by id. Used to look up frie...
magicseth authored
27 MGTwitterBulkUserInformationRequest, // user information using the specified id or email
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
28 MGTwitterDirectMessagesRequest, // latest direct messages to the current user
29 MGTwitterDirectMessagesSentRequest, // latest direct messages from the current user
30 MGTwitterDirectMessageSendRequest, // send a new direct message from the current user
31 MGTwitterDirectMessageDeleteRequest, // delete a direct message to/from the current user
32 MGTwitterUpdatesEnableRequest, // enable status updates for specified user (e.g. follow)
33 MGTwitterUpdatesDisableRequest, // disable status updates for specified user (e.g. unfollow)
34 MGTwitterUpdatesCheckRequest, // check if the specified user is following another user
35 MGTwitterAccountRequest, // changing account information for the current user
36 MGTwitterAccountLocationRequest, // change location in account information for the current user
37 MGTwitterAccountDeliveryRequest, // change notification delivery in account information for the current user
38 MGTwitterAccountStatusRequest, // get rate limiting status for the current user
39 MGTwitterFavoritesRequest, // latest favorites for the current user
40 MGTwitterFavoritesForUserRequest, // latest favorites for the specified user
41 MGTwitterFavoritesEnableRequest, // create a favorite for the current user using the specified id
42 MGTwitterFavoritesDisableRequest, // remove a favorite for the current user using the specified id
43 MGTwitterNotificationsEnableRequest, // enable notifications for the specified user
44 MGTwitterNotificationsDisableRequest, // disable notifications for the specified user
45 MGTwitterBlockEnableRequest, // enable block for the specified user
46 MGTwitterBlockDisableRequest, // disable block for the specified user
47 MGTwitterImageRequest, // requesting an image
8784e62 @tarasis Added initial support for the Social Graph API requests.
tarasis authored
48 MGTwitterFriendIDsRequest, // request the numeric IDs for every user the specified user is following
49 MGTwitterFollowerIDsRequest, // request the numeric IDs of the followers of the specified user
34f0344 @catsby Added start of User List parser.
catsby authored
50 MGTwitterUserListsRequest,
0b58bc2 @catsby Added method to create lists for authenticated users.
catsby authored
51 MGTwitterUserListCreate,
9463f27 @stevestreza Architectural support for TouchJSON
stevestreza authored
52 #if YAJL_AVAILABLE || TOUCHJSON_AVAILABLE
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer suppo...
Craig Hockenberry authored
53 MGTwitterSearchRequest, // performing a search
54 MGTwitterSearchCurrentTrendsRequest, // getting the current trends
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
55 #endif
282b4bf @stevestreza Initial changes for OAuth. Be sure to add checkouts of OAuthConsumer and...
stevestreza authored
56 MGTwitterOAuthTokenRequest,
96b2053 @mattgemmell MGTwitterEngine re-import.
authored
57 } MGTwitterRequestType;
58
59 typedef enum _MGTwitterResponseType {
60 MGTwitterStatuses = 0, // one or more statuses
61 MGTwitterStatus = 1, // exactly one status
62 MGTwitterUsers = 2, // one or more user's information
63 MGTwitterUser = 3, // info for exactly one user
64 MGTwitterDirectMessages = 4, // one or more direct messages
65 MGTwitterDirectMessage = 5, // exactly one direct message
66 MGTwitterGeneric = 6, // a generic response not requiring parsing
67 MGTwitterMiscellaneous = 8, // a miscellaneous response of key-value pairs
68 MGTwitterImage = 7, // an image
9463f27 @stevestreza Architectural support for TouchJSON
stevestreza authored
69 #if YAJL_AVAILABLE || TOUCHJSON_AVAILABLE
d92366b First pass at implementing the search API.
Craig Hockenberry authored
70 MGTwitterSearchResults = 9, // search results
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
71 #endif
8784e62 @tarasis Added initial support for the Social Graph API requests.
tarasis authored
72 MGTwitterSocialGraph = 10,
282b4bf @stevestreza Initial changes for OAuth. Be sure to add checkouts of OAuthConsumer and...
stevestreza authored
73 MGTwitterOAuthToken = 11,
34f0344 @catsby Added start of User List parser.
catsby authored
74 MGTwitterUserLists = 12,
96b2053 @mattgemmell MGTwitterEngine re-import.
authored
75 } MGTwitterResponseType;
76
77 // This key is added to each tweet or direct message returned,
78 // with an NSNumber value containing an MGTwitterRequestType.
79 // This is designed to help client applications aggregate updates.
80 #define TWITTER_SOURCE_REQUEST_TYPE @"source_api_request_type"
Something went wrong with that request. Please try again.