Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 74 lines (69 sloc) 4.492 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 su…
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 …
justin authored
13 MGTwitterHomeTimelineRequest, // latest statuses from the home timeline
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer su…
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
21 MGTwitterFeaturedUsersRequest, // latest status from featured users
22 MGTwitterFriendUpdatesRequest, // last status for the people that the current user follows
23 MGTwitterFriendUpdatesForUserRequest, // last status for the people that the specified user follows
24 MGTwitterFollowerUpdatesRequest, // last status for the people that follow the current user
25 MGTwitterUserInformationRequest, // user information using the specified id or email
26 MGTwitterDirectMessagesRequest, // latest direct messages to the current user
27 MGTwitterDirectMessagesSentRequest, // latest direct messages from the current user
28 MGTwitterDirectMessageSendRequest, // send a new direct message from the current user
29 MGTwitterDirectMessageDeleteRequest, // delete a direct message to/from the current user
30 MGTwitterUpdatesEnableRequest, // enable status updates for specified user (e.g. follow)
31 MGTwitterUpdatesDisableRequest, // disable status updates for specified user (e.g. unfollow)
32 MGTwitterUpdatesCheckRequest, // check if the specified user is following another user
33 MGTwitterAccountRequest, // changing account information for the current user
34 MGTwitterAccountLocationRequest, // change location in account information for the current user
35 MGTwitterAccountDeliveryRequest, // change notification delivery in account information for the current user
36 MGTwitterAccountStatusRequest, // get rate limiting status for the current user
37 MGTwitterFavoritesRequest, // latest favorites for the current user
38 MGTwitterFavoritesForUserRequest, // latest favorites for the specified user
39 MGTwitterFavoritesEnableRequest, // create a favorite for the current user using the specified id
40 MGTwitterFavoritesDisableRequest, // remove a favorite for the current user using the specified id
41 MGTwitterNotificationsEnableRequest, // enable notifications for the specified user
42 MGTwitterNotificationsDisableRequest, // disable notifications for the specified user
43 MGTwitterBlockEnableRequest, // enable block for the specified user
44 MGTwitterBlockDisableRequest, // disable block for the specified user
45 MGTwitterImageRequest, // requesting an image
8784e62 @tarasis Added initial support for the Social Graph API requests.
tarasis authored
46 MGTwitterFriendIDsRequest, // request the numeric IDs for every user the specified user is following
47 MGTwitterFollowerIDsRequest, // request the numeric IDs of the followers of the specified user
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
48 #if YAJL_AVAILABLE
c8ba147 Removed -getFollowedTimelineFor:* methods since they are no longer su…
Craig Hockenberry authored
49 MGTwitterSearchRequest, // performing a search
50 MGTwitterSearchCurrentTrendsRequest, // getting the current trends
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
51 #endif
96b2053 @mattgemmell MGTwitterEngine re-import.
authored
52 } MGTwitterRequestType;
53
54 typedef enum _MGTwitterResponseType {
55 MGTwitterStatuses = 0, // one or more statuses
56 MGTwitterStatus = 1, // exactly one status
57 MGTwitterUsers = 2, // one or more user's information
58 MGTwitterUser = 3, // info for exactly one user
59 MGTwitterDirectMessages = 4, // one or more direct messages
60 MGTwitterDirectMessage = 5, // exactly one direct message
61 MGTwitterGeneric = 6, // a generic response not requiring parsing
62 MGTwitterMiscellaneous = 8, // a miscellaneous response of key-value pairs
63 MGTwitterImage = 7, // an image
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
64 #if YAJL_AVAILABLE
d92366b First pass at implementing the search API.
Craig Hockenberry authored
65 MGTwitterSearchResults = 9, // search results
fd65d2c Added delegate callback for each parsed object.
Craig Hockenberry authored
66 #endif
8784e62 @tarasis Added initial support for the Social Graph API requests.
tarasis authored
67 MGTwitterSocialGraph = 10,
96b2053 @mattgemmell MGTwitterEngine re-import.
authored
68 } MGTwitterResponseType;
69
70 // This key is added to each tweet or direct message returned,
71 // with an NSNumber value containing an MGTwitterRequestType.
72 // This is designed to help client applications aggregate updates.
73 #define TWITTER_SOURCE_REQUEST_TYPE @"source_api_request_type"
Something went wrong with that request. Please try again.