File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -254,13 +254,13 @@ extern NSString * const OCTClientErrorHTTPStatusCodeKey;
254
254
// `authenticated`, the signal will error immediately.
255
255
- (RACSignal *)fetchNotificationsNotMatchingEtag : (NSString *)etag includeReadNotifications : (BOOL )includeRead updatedSince : (NSDate *)since ;
256
256
257
- // Mark the notification has having been read.
257
+ // Mark a notification thread as having been read.
258
258
//
259
- // notification - The notification to mark as read. Cannot be nil.
259
+ // threadURL - The API URL of the thread to mark as read. Cannot be nil.
260
260
//
261
261
// Returns a signal which will send completed on success. If the client is not
262
262
// `authenticated`, the signal will error immediately.
263
- - (RACSignal *)markNotificationAsRead : (OCTNotification *)notification ;
263
+ - (RACSignal *)markNotificationThreadAsReadAtURL : ( NSURL *)threadURL ;
264
264
265
265
// Mutes all further notifications from a thread.
266
266
//
Original file line number Diff line number Diff line change @@ -531,17 +531,17 @@ - (RACSignal *)fetchNotificationsNotMatchingEtag:(NSString *)etag includeReadNot
531
531
return [self enqueueRequest: request resultClass: OCTNotification.class];
532
532
}
533
533
534
- - (RACSignal *)markNotificationAsRead : (OCTNotification *)notification {
535
- return [self patchNotification: notification withReadStatus: YES ];
534
+ - (RACSignal *)markNotificationThreadAsReadAtURL : ( NSURL *)threadURL {
535
+ return [self patchThreadURL: threadURL withReadStatus: YES ];
536
536
}
537
537
538
- - (RACSignal *)patchNotification : (OCTNotification *)notification withReadStatus : (BOOL )read {
539
- NSParameterAssert (notification != nil );
538
+ - (RACSignal *)patchThreadURL : ( NSURL *)threadURL withReadStatus : (BOOL )read {
539
+ NSParameterAssert (threadURL != nil );
540
540
541
541
if (!self.authenticated ) return [RACSignal error: self .class.authenticationRequiredError];
542
542
543
543
NSMutableURLRequest *request = [self requestWithMethod: @" PATCH" path: @" " parameters: @{ @" read" : @(read) }];
544
- request.URL = notification. threadURL ;
544
+ request.URL = threadURL;
545
545
return [[self enqueueRequest: request resultClass: nil ] ignoreElements ];
546
546
}
547
547
You can’t perform that action at this time.
0 commit comments