Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 804 Bytes
//
// ANCreateFilterRequest.m
// Alef
//
// Created by Brent Royal-Gordon on 10/21/12.
// Copyright (c) 2012 Architechies. All rights reserved.
//
#import "ANCreateFilterRequest.h"
@implementation ANCreateFilterRequest
- (NSURL *)URL {
return [NSURL URLWithString:@"filters" relativeToURL:[self.session URLForStreamAPIVersion:ANStreamAPIVersion0]];
}
- (NSDictionary *)parameters {
return self.draftFilter.representation;
}
- (ANRequestMethod)method {
return ANRequestMethodPost;
}
- (void)sendRequestWithCompletion:(ANFilterRequestCompletion)completion {
[self sendRequestWithRepresentationCompletion:^(ANResponse *response, id rep, NSError *error) {
[self.session completeFilterRequest:completion withResponse:response representation:rep error:error];
}];
}
@end