forked from darrylhthomas/StackMob_iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSTMDynamicDataProvider.m
More file actions
84 lines (66 loc) · 2.34 KB
/
Copy pathSTMDynamicDataProvider.m
File metadata and controls
84 lines (66 loc) · 2.34 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//
// StackMobDataBridge.m
// StackMobiOS
//
// Created by Ryan Connelly on 10/9/11.
// Copyright (c) 2011 StackMob, Inc. All rights reserved.
//
#import "STMDynamicDataProvider.h"
#import "StackMobRequest.h"
#import "StackMobPushRequest.h"
@implementation STMDynamicDataProvider
- (void) prepare
{
}
- (StackMobRequest *)request
{
return [StackMobRequest request];
}
- (StackMobRequest *)userRequest
{
return [StackMobRequest userRequest];
}
- (StackMobRequest *)requestForMethod:(NSString*)method
{
return [StackMobRequest requestForMethod:method withHttpVerb:GET];
}
- (StackMobRequest *)requestForMethod:(NSString*)method withHttpVerb:(SMHttpVerb)httpVerb
{
return [StackMobRequest requestForMethod:method withObject:nil withHttpVerb:httpVerb];
}
- (StackMobRequest *)requestForMethod:(NSString*)method withObject:(id)object withHttpVerb:(SMHttpVerb)httpVerb
{
return [StackMobRequest requestForMethod:method withObject:object withHttpVerb:httpVerb];
}
+ (StackMobRequest *)requestForMethod:(NSString*)method withArguments:(NSDictionary*)arguments withHttpVerb:(SMHttpVerb)httpVerb;
{
return [StackMobRequest requestForMethod:method withArguments:arguments withHttpVerb:httpVerb];
}
- (StackMobRequest *)requestForMethod:(NSString *)method withData:(NSData *)data{
return [StackMobRequest requestForMethod:method withData:data];
}
- (StackMobRequest *)userRequestForMethod:(NSString *)method withHttpVerb:(SMHttpVerb)httpVerb
{
return [StackMobRequest userRequestForMethod:method withObject:nil withHttpVerb:httpVerb];
}
- (StackMobRequest *)userRequestForMethod:(NSString*)method withObject:(id)object withHttpVerb:(SMHttpVerb)httpVerb
{
return [StackMobRequest userRequestForMethod:method withObject:object withHttpVerb:httpVerb];
}
- (StackMobPushRequest *)pushRequestWithArguments:(NSDictionary*)arguments withHttpVerb:(SMHttpVerb) httpVerb
{
return [StackMobRequest pushRequestWithArguments:arguments withHttpVerb:httpVerb];
}
- (StackMobPushRequest *)pushRequest
{
return [StackMobPushRequest request];
}
- (StackMobBulkRequest *)bulkRequestForMethod:(NSString *)method withObject:(id)object withHttpVerb:(SMHttpVerb) httpVerb
{
return [StackMobBulkRequest requestForMethod:method withArguments:object withHttpVerb:httpVerb];
}
- (StackMobBulkRequest *)bulkRequest
{
return [StackMobBulkRequest request];
}
@end