1
1
part of flutter_parse_sdk;
2
2
3
3
class ParseConfig extends ParseObject {
4
- var _client = ParseHTTPClient ();
4
+ var _client = ParseHTTPClient (ParseCoreData ().securityContext );
5
5
6
6
/// Creates an instance of ParseConfig so that you can grab all configs from the server
7
7
ParseConfig ({bool debug, ParseHTTPClient client}) : super ('config' ) {
@@ -14,7 +14,8 @@ class ParseConfig extends ParseObject {
14
14
try {
15
15
var uri = "${ParseCoreData ().serverUrl }/config" ;
16
16
var result = await _client.get (uri);
17
- return handleResponse (this , result, ParseApiRQ .getConfigs, _debug, className);
17
+ return handleResponse (
18
+ this , result, ParseApiRQ .getConfigs, _debug, className);
18
19
} on Exception catch (e) {
19
20
return handleException (e, ParseApiRQ .getConfigs, _debug, className);
20
21
}
@@ -26,7 +27,8 @@ class ParseConfig extends ParseObject {
26
27
var uri = "${ParseCoreData ().serverUrl }/config" ;
27
28
var body = "{\" params\" :{\" $key \" : \" ${parseEncode (value )}\" }}" ;
28
29
var result = await _client.put (uri, body: body);
29
- return handleResponse (this , result, ParseApiRQ .addConfig, _debug, className);
30
+ return handleResponse (
31
+ this , result, ParseApiRQ .addConfig, _debug, className);
30
32
} on Exception catch (e) {
31
33
return handleException (e, ParseApiRQ .addConfig, _debug, className);
32
34
}
0 commit comments