Explorar o código

[컨텐츠][New] api 필드명 변경
- addr -> mapUrl

hyodong.min %!s(int64=6) %!d(string=hai) anos
pai
achega
8de553d85a

+ 3 - 3
app/src/main/java/kr/co/zumo/app/lifeplus/bean/api/ContentsButtonInfoBean.java

@@ -28,7 +28,7 @@ public class ContentsButtonInfoBean extends JsonBeanBase {
                     "telTono": "6080",
                     "telDtal": "1313",
                     "link": null,
-                    "addr": "http://naver.ME/xaFPM2Vi",
+                    "mapUrl": "http://naver.ME/xaFPM2Vi",
                     "homePage": "https://goo.GL/i5eNoa",
                     "instagram": null,
                     "facebook": null,
@@ -44,7 +44,7 @@ public class ContentsButtonInfoBean extends JsonBeanBase {
   private String phoneNumber2;
   @SerializedName("link")
   private String link;
-  @SerializedName("addr")
+  @SerializedName("mapUrl")
   private String address;
   @SerializedName("homePage")
   private String homepage;
@@ -73,7 +73,7 @@ public class ContentsButtonInfoBean extends JsonBeanBase {
   }
 
   @Nullable
-  public String getAddress() {
+  public String getMapUrl() {
     return address;
   }
 

+ 2 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/MoreInfoDialog.java

@@ -154,10 +154,10 @@ public class MoreInfoDialog extends DialogBottomBase<ICustomDialogListener<MoreI
     /*하단 버튼 클릭 이벤트*/
 
     if (null != contentsButtonInfo) {
-      if (StringUtil.isFull(contentsButtonInfo.getAddress())) {
+      if (StringUtil.isFull(contentsButtonInfo.getMapUrl())) {
         getView().findViewById(R.id.image_view_address).setVisibility(View.VISIBLE);
         getView().findViewById(R.id.image_view_address).setOnClickListener(view -> {
-          getCustomListener().onDialogResult(MoreInfoDialog.this, new Event.Builder(Event.ADDRESS).string(contentsButtonInfo.getAddress()).build());
+          getCustomListener().onDialogResult(MoreInfoDialog.this, new Event.Builder(Event.ADDRESS).string(contentsButtonInfo.getMapUrl()).build());
         });
       }
       if (StringUtil.isFull(contentsButtonInfo.getFacebook())) {

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/main/MainModel.java

@@ -457,7 +457,7 @@ public class MainModel extends CoinModel {
       if (null != addressList && addressList.size() > 0) {
         Address area = addressList.get(0);
         nowAddress = area.getAdminArea();   // area.getAddressLine(0);
-        Log.i("APP# MainModel | getAddress", "|" + " address: " + nowAddress);
+        Log.i("APP# MainModel | getMapUrl", "|" + " address: " + nowAddress);
       }
     } catch (IOException e) {
       e.printStackTrace();