forked from kylebrowning/waterwheel.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DIOSEntity.h
33 lines (28 loc) · 1.54 KB
/
DIOSEntity.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
32
33
//
// DIOSEntity.h
// dios
//
// Created by Kyle Browning on 9/4/14.
// Copyright (c) 2014 Kyle Browning. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperation.h"
@interface DIOSEntity : NSObject
+ (void) getEntityWithName:(NSString*)name andID:(NSString*)eid
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) createEntityWithEntityName:(NSString*)name
type:(NSString*)type
andParams:(NSDictionary*)params
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) deleteEntityWithEntityName:(NSString*)name andID:(NSString*)eid
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
+ (void) patchEntityWithEntityName:(NSString*)name
type:(NSString*)type
eid:(NSString*)eid
andParams:(NSDictionary*)params
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure;
@end