forked from kylebrowning/waterwheel.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DIOSNode.h
31 lines (26 loc) · 1.3 KB
/
DIOSNode.h
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
//
// DIOSNode.h
// dios
//
// Created by Kyle Browning on 9/5/14.
// Copyright (c) 2014 Kyle Browning. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperation.h"
@interface DIOSNode : NSObject
+ (void) getNodeWithID:(NSString*)eid
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) createNodeWithParams:(NSDictionary*)params
type:(NSString *)type
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) deleteNodeWithID:(NSString*)eid
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) patchNodeWithID:(NSString*)eid
params:(NSDictionary*)params
type:(NSString *)type
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
@end