-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathCOTweetRequest.h
More file actions
143 lines (98 loc) · 2.76 KB
/
Copy pathCOTweetRequest.h
File metadata and controls
143 lines (98 loc) · 2.76 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
//
// COTweetRequest.h
// CodingForiPad
//
// Created by sunguanglei on 15/6/21.
// Copyright (c) 2015年 coding. All rights reserved.
//
#import "CODataRequest.h"
@interface COTweetRequest : CODataRequest
@property (nonatomic, copy) COQueryParameters NSNumber *lastId;
@property (nonatomic, copy) COQueryParameters NSString *sort;
@property (nonatomic, copy) COQueryParameters NSString *userId;
@end
/**
*
朋友圈
api/activities/user_tweet:
{
"last_id" = 99999999;
}
*/
@interface COFriendTweetRequest : COTweetRequest
@end
/**
广场
api/tweet/public_tweets:
{
"last_id" = 99999999;
sort = time;
}
*/
@interface COPublicTweetRequest : COTweetRequest
@end
/**
热门
api/tweet/public_tweets:
{
"last_id" = 99999999;
sort = hot;
}
*/
/**
我的冒泡
api/tweet/user_public:
{
"last_id" = 99999999;
"user_id" = 54909;
}
*/
COGetRequest
@interface COUserPublicTweetRequest : CODataRequest
@property (nonatomic, copy) COQueryParameters NSNumber *lastId;
@property (nonatomic, copy) COQueryParameters NSNumber *userId;
@end
// 发送冒泡
@interface COTweetSendRequest : COTweetRequest
@property (nonatomic, copy) COFormParameters NSString *content;
@property (nonatomic, copy) COFormParameters NSString *location;
@property (nonatomic, copy) COFormParameters NSString *coord;
@property (nonatomic, copy) COFormParameters NSString *address;
// 还有图片内容,地址内容
@end
// 发送冒泡图片
@interface COTweetSendImageRequest : COTweetRequest
@end
@interface COTweetLikeRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@end
@interface COTweetUnlikeRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@end
@interface COTweetCommentRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@property (nonatomic, copy) COFormParameters NSString *content;
@end
@interface COTweetCommentDeleteRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@property (nonatomic, copy) COUriParameters NSNumber *commentId;
@end
@interface COFollowersRequest : COPageRequest
@property (nonatomic, copy) COUriParameters NSString *globalKey;
@end
@interface COFriendsRequest : COPageRequest
@property (nonatomic, copy) COUriParameters NSString *globalKey;
@end
COGetRequest
@interface COTweetCommentsRequest : COPageRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@end
CODeleteRequest
@interface COTweetDeleteRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@end
COGetRequest
@interface COTweetDetailRequest : CODataRequest
@property (nonatomic, copy) COUriParameters NSString *globalKey;
@property (nonatomic, copy) COUriParameters NSNumber *tweetId;
@end