Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (24 sloc) 0.832 kB
//
// ANMuteUserRequest.m
// AppNetKit
//
// Created by Brent Royal-Gordon on 8/19/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import "ANMuteUserRequest.h"
@implementation ANMuteUserRequest
- (NSURL *)URL {
return [NSURL URLWithString:[self pathWithFormat:@"users/%@/mute" userID:self.userID] relativeToURL:[self.session URLForStreamAPIVersion:ANStreamAPIVersion0]];
}
- (NSDictionary *)parameters {
return nil;
}
- (ANRequestMethod)method {
return ANRequestMethodPost;
}
- (void)sendRequestWithCompletion:(ANUserRequestCompletion)completion {
[self sendRequestWithRepresentationCompletion:^(ANResponse * response, id rep, NSError *error) {
[self.session completeUserRequest:completion withResponse:response representation:rep error:error];
}];
}
@end
Jump to Line
Something went wrong with that request. Please try again.