Skip to content

Commit

Permalink
parser example code added in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
amitshekhariitbhu committed Jul 31, 2016
1 parent 9a7e739 commit 549a851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ AndroidNetworking.post("http://api.localhost.com/postFile")
```

### Using it with your own JAVA Object - JSON Parser
```
```java
/*--------------Example One -> Getting the userList----------------*/
AndroidNetworking.get("http://api.localhost.com/getAllUsers/{pageNumber}")
.addPathParameter("pageNumber", "0")
Expand Down Expand Up @@ -218,7 +218,7 @@ AndroidNetworking.get("http://api.localhost.com/getAnUser/{userId}")
// handle error
}
});
/*-- Note : TypeToken and getAsParsed is important here--*/
/*-- Note : TypeToken and getAsParsed is important here --*/
```

### Downloading a file from server
Expand Down
4 changes: 2 additions & 2 deletions RxAndroidNetworking.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RxAndroidNetworking.download(url,dirPath,fileName)
```

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

### Uploading a file to server
Expand Down

0 comments on commit 549a851

Please sign in to comment.