Skip to content

Commit 549a851

Browse files
parser example code added in readme
1 parent 9a7e739 commit 549a851

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ AndroidNetworking.post("http://api.localhost.com/postFile")
175175
```
176176

177177
### Using it with your own JAVA Object - JSON Parser
178-
```
178+
```java
179179
/*--------------Example One -> Getting the userList----------------*/
180180
AndroidNetworking.get("http://api.localhost.com/getAllUsers/{pageNumber}")
181181
.addPathParameter("pageNumber", "0")
@@ -218,7 +218,7 @@ AndroidNetworking.get("http://api.localhost.com/getAnUser/{userId}")
218218
// handle error
219219
}
220220
});
221-
/*-- Note : TypeToken and getAsParsed is important here--*/
221+
/*-- Note : TypeToken and getAsParsed is important here --*/
222222
```
223223

224224
### Downloading a file from server

RxAndroidNetworking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ RxAndroidNetworking.download(url,dirPath,fileName)
9090
```
9191

9292
### Using it with your own JAVA Object - JSON Parser
93-
```
93+
```java
9494
/*--------------Example One -> Getting the userList----------------*/
9595
RxAndroidNetworking.get("http://api.localhost.com/getAllUsers/{pageNumber}")
9696
.addPathParameter("pageNumber", "0")
@@ -144,7 +144,7 @@ RxAndroidNetworking.get("http://api.localhost.com/getAnUser/{userId}")
144144
Log.d(TAG, "lastname : " + user.lastname);
145145
}
146146
});
147-
/*-- Note : TypeToken and getParseObservable is important here--*/
147+
/*-- Note : TypeToken and getParseObservable is important here --*/
148148
```
149149

150150
### Uploading a file to server

0 commit comments

Comments
 (0)