@@ -26,7 +26,7 @@ - (void)getCommentsWithMaximumCount:(NSInteger)maximumComments
26
26
{
27
27
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments" , self .siteID];
28
28
NSString *requestUrl = [self pathForEndpoint: path
29
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
29
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
30
30
31
31
NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithDictionary: @{
32
32
@" force" : @" wpcom" , // Force fetching data from shadow site on Jetpack sites
@@ -82,7 +82,7 @@ - (void)getCommentWithID:(NSNumber *)commentID
82
82
{
83
83
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
84
84
NSString *requestUrl = [self pathForEndpoint: path
85
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
85
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
86
86
87
87
[self .wordPressComRESTAPI get: requestUrl
88
88
parameters: nil
@@ -110,7 +110,7 @@ - (void)createComment:(RemoteComment *)comment
110
110
}
111
111
112
112
NSString *requestUrl = [self pathForEndpoint: path
113
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
113
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
114
114
115
115
NSDictionary *parameters = @{
116
116
@" content" : comment.content ,
@@ -137,7 +137,7 @@ - (void)updateComment:(RemoteComment *)comment
137
137
{
138
138
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, comment.commentID];
139
139
NSString *requestUrl = [self pathForEndpoint: path
140
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
140
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
141
141
142
142
NSDictionary *parameters = @{
143
143
@" content" : comment.content ,
@@ -168,7 +168,7 @@ - (void)moderateComment:(RemoteComment *)comment
168
168
{
169
169
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, comment.commentID];
170
170
NSString *requestUrl = [self pathForEndpoint: path
171
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
171
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
172
172
173
173
NSDictionary *parameters = @{
174
174
@" status" : [self remoteStatusWithStatus: comment.status],
@@ -195,7 +195,7 @@ - (void)trashComment:(RemoteComment *)comment
195
195
{
196
196
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /delete" , self .siteID, comment.commentID];
197
197
NSString *requestUrl = [self pathForEndpoint: path
198
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
198
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
199
199
200
200
[self .wordPressComRESTAPI post: requestUrl
201
201
parameters: nil
@@ -221,7 +221,7 @@ - (void)syncHierarchicalCommentsForPost:(NSNumber *)postID
221
221
{
222
222
NSString *path = [NSString stringWithFormat: @" sites/%@ /posts/%@ /replies?order=ASC&hierarchical=1&page=%lu &number=%lu " , self .siteID, postID, (unsigned long )page, (unsigned long )number];
223
223
NSString *requestUrl = [self pathForEndpoint: path
224
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
224
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
225
225
226
226
NSDictionary *parameters = @{
227
227
@" force" : @" wpcom" // Force fetching data from shadow site on Jetpack sites
@@ -252,7 +252,7 @@ - (void)updateCommentWithID:(NSNumber *)commentID
252
252
{
253
253
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
254
254
NSString *requestUrl = [self pathForEndpoint: path
255
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
255
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
256
256
257
257
NSDictionary *parameters = @{
258
258
@" content" : content,
@@ -278,7 +278,7 @@ - (void)replyToPostWithID:(NSNumber *)postID
278
278
{
279
279
NSString *path = [NSString stringWithFormat: @" sites/%@ /posts/%@ /replies/new" , self .siteID, postID];
280
280
NSString *requestUrl = [self pathForEndpoint: path
281
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
281
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
282
282
283
283
NSDictionary *parameters = @{@" content" : content};
284
284
@@ -304,7 +304,7 @@ - (void)replyToCommentWithID:(NSNumber *)commentID
304
304
{
305
305
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /replies/new" , self .siteID, commentID];
306
306
NSString *requestUrl = [self pathForEndpoint: path
307
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
307
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
308
308
309
309
NSDictionary *parameters = @{
310
310
@" content" : content,
@@ -332,7 +332,7 @@ - (void)moderateCommentWithID:(NSNumber *)commentID
332
332
{
333
333
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ " , self .siteID, commentID];
334
334
NSString *requestUrl = [self pathForEndpoint: path
335
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
335
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
336
336
337
337
NSDictionary *parameters = @{
338
338
@" status" : status,
@@ -358,7 +358,7 @@ - (void)trashCommentWithID:(NSNumber *)commentID
358
358
{
359
359
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /delete" , self .siteID, commentID];
360
360
NSString *requestUrl = [self pathForEndpoint: path
361
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
361
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
362
362
363
363
[self .wordPressComRESTAPI post: requestUrl
364
364
parameters: nil
@@ -379,7 +379,7 @@ - (void)likeCommentWithID:(NSNumber *)commentID
379
379
{
380
380
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes/new" , self .siteID, commentID];
381
381
NSString *requestUrl = [self pathForEndpoint: path
382
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
382
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
383
383
384
384
[self .wordPressComRESTAPI post: requestUrl
385
385
parameters: nil
@@ -400,7 +400,7 @@ - (void)unlikeCommentWithID:(NSNumber *)commentID
400
400
{
401
401
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes/mine/delete" , self .siteID, commentID];
402
402
NSString *requestUrl = [self pathForEndpoint: path
403
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_1 ];
403
+ withVersion: WordPressComRESTAPIVersion_1_1 ];
404
404
405
405
[self .wordPressComRESTAPI post: requestUrl
406
406
parameters: nil
@@ -426,7 +426,7 @@ - (void)getLikesForCommentID:(NSNumber *)commentID
426
426
427
427
NSString *path = [NSString stringWithFormat: @" sites/%@ /comments/%@ /likes" , self .siteID, commentID];
428
428
NSString *requestUrl = [self pathForEndpoint: path
429
- withVersion: ServiceRemoteWordPressComRESTApiVersion_1_2 ];
429
+ withVersion: WordPressComRESTAPIVersion_1_2 ];
430
430
NSNumber *siteID = self.siteID ;
431
431
432
432
// If no count provided, default to endpoint max.
0 commit comments