Skip to content

Commit

Permalink
requestMe 결과에서 nullable 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
GwonHyeok committed Jul 10, 2018
1 parent 8cfd42f commit cabf6bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/android/io/ghyeok/cordova/naver/NaverPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ private JSONObject buildRequestMeJsonObject(String response) throws JSONExceptio
JSONObject serializedResponseObject = new JSONObject();

// 결과 파싱후 camel case 로 수정
serializedResponseObject.put("email", responseJsonObject.get("email"));
serializedResponseObject.put("nickname", responseJsonObject.get("nickname"));
serializedResponseObject.put("profileImage", responseJsonObject.get("profile_image"));
serializedResponseObject.put("age", responseJsonObject.get("age"));
serializedResponseObject.put("gender", responseJsonObject.get("gender"));
serializedResponseObject.put("id", responseJsonObject.get("id"));
serializedResponseObject.put("name", responseJsonObject.get("name"));
serializedResponseObject.put("birthday", responseJsonObject.get("birthday"));
serializedResponseObject.put("email", responseJsonObject.opt("email"));
serializedResponseObject.put("nickname", responseJsonObject.opt("nickname"));
serializedResponseObject.put("profileImage", responseJsonObject.opt("profile_image"));
serializedResponseObject.put("age", responseJsonObject.opt("age"));
serializedResponseObject.put("gender", responseJsonObject.opt("gender"));
serializedResponseObject.put("id", responseJsonObject.opt("id"));
serializedResponseObject.put("name", responseJsonObject.opt("name"));
serializedResponseObject.put("birthday", responseJsonObject.opt("birthday"));

// 결과 코드, 메세지
serializedObject.put("resultCode", jsonObject.get("resultcode"));
Expand Down

0 comments on commit cabf6bd

Please sign in to comment.