From 549a85182c6573c0beab0b7b978577cfd123dda8 Mon Sep 17 00:00:00 2001 From: AMIT SHEKHAR Date: Sun, 31 Jul 2016 15:42:06 +0530 Subject: [PATCH] parser example code added in readme --- README.md | 4 ++-- RxAndroidNetworking.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b2455a7..f0520174 100644 --- a/README.md +++ b/README.md @@ -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") @@ -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 diff --git a/RxAndroidNetworking.md b/RxAndroidNetworking.md index df63bea3..ae39b353 100644 --- a/RxAndroidNetworking.md +++ b/RxAndroidNetworking.md @@ -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") @@ -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