Sfoglia il codice sorgente

Revert "[이벤트][Common] 당첨자 발표 API 필드 추가"

This reverts commit b332aa8e5b16386023c1489b58cef294375b5bef.
Hasemi 6 anni fa
parent
commit
d784a8e17d

+ 6 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/bean/api/EventWinnerListBean.java

@@ -20,17 +20,17 @@ import java.util.List;
 public class EventWinnerListBean extends EventBean {
   @SerializedName("winPreDate")
   private String winnerDate; // 당첨자발표일, 2019-01-21
-  @SerializedName("notice")
-  private String notice; // 이벤트 설명 추후 반영
+  @SerializedName("description")
+  private String description; // 이벤트 설명 추후 반영
   @SerializedName("eventWinnerList")
   private List<EventWinnerBean> winnerList;
 
-  public String getNotice() {
-    return notice;
+  public String getDescription() {
+    return description;
   }
 
-  public void setNotice(String notice) {
-    this.notice = notice;
+  public void setDescription(String description) {
+    this.description = description;
   }
 
   public String getWinnerDate() {

+ 3 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/event/EventWinnerFragment.java

@@ -96,7 +96,9 @@ public class EventWinnerFragment extends FragmentBase<EventWinnerPresenter> impl
 
     textViewEventDate.setText(ResourceUtil.getString(R.string.event_period, EventBean.getTermString(bean)));
     textViewWinnerDate.setText(ResourceUtil.getString(R.string.event_announce, winnerDate));
-    textViewAnnouncementNotice.setText(bean.getNotice());
+
+    // TODO: 당첨자 발표 내용 API 보완 필요함
+    textViewAnnouncementNotice.setText(bean.getDescription());
 
     int emailId = R.id.text_view_email;
     int nameId = R.id.text_view_name;

+ 4 - 4
app/src/test/java/kr/co/zumo/app/lifeplus/bean/api/EventWinnerListBeanTest.java

@@ -22,8 +22,8 @@ public class EventWinnerListBeanTest {
   @Test
   public void setDescription() {
     EventWinnerListBean bean = new EventWinnerListBean();
-    bean.setNotice("description");
-    Assert.assertEquals("description", bean.getNotice());
+    bean.setDescription("description");
+    Assert.assertEquals("description", bean.getDescription());
     Assert.assertEquals(null, bean.getWinnerDate());
     Assert.assertEquals(null, bean.getWinnerList());
   }
@@ -32,7 +32,7 @@ public class EventWinnerListBeanTest {
   public void setWinnerDate() {
     EventWinnerListBean bean = new EventWinnerListBean();
     bean.setWinnerDate("date");
-    Assert.assertEquals(null, bean.getNotice());
+    Assert.assertEquals(null, bean.getDescription());
     Assert.assertEquals("date", bean.getWinnerDate());
     Assert.assertEquals(null, bean.getWinnerList());
   }
@@ -44,7 +44,7 @@ public class EventWinnerListBeanTest {
 
     bean.setWinnerList(winnerList);
 
-    Assert.assertEquals(null, bean.getNotice());
+    Assert.assertEquals(null, bean.getDescription());
     Assert.assertEquals(null, bean.getWinnerDate());
     Assert.assertEquals(winnerList, bean.getWinnerList());
   }