| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cb37f50 commit 35daec8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,7 @@ | |||
| 39 | 39 | import apijson.demo.HttpManager.OnHttpResponseListener; | |
| 40 | 40 | import apijson.demo.R; | |
| 41 | 41 | import apijson.demo.StringUtil; | |
| 42 | + import apijson.demo.model.BaseModel; | ||
| 42 | 43 | import apijson.demo.model.Moment; | |
| 43 | 44 | import apijson.demo.model.Wallet; | |
| 44 | 45 | ||
@@ -233,7 +234,7 @@ public void onHttpResponse(int requestCode, final String resultJson, final Excep | |||
| 233 | 234 | ||
| 234 | 235 | if ("post".equals(method)) { | |
| 235 | 236 | Moment moment = response.getObject(Moment.class); | |
| 236 | - id = moment == null ? 0 : moment.getId(); | ||
| 237 | + id = moment == null ? 0 : BaseModel.value(moment.getId()); | ||
| 237 | 238 | Log.d(TAG, "onHttpResponse post.equals(method) >> id = " + id); | |
| 238 | 239 | ||
| 239 | 240 | } else if ("put".equals(method)) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments