如何使用改造在android中获取此数组列表?

时间:2018-12-04 12:15:40

标签: android

{
    "status": 1,
    "message": "Success",
    "disp_time": [
           "05-12-2018 9:00",
           "05-12-2018 11:00",
           "05-12-2018 13:00",
           "05-12-2018 15:00",
           "05-12-2018 17:00",
           "05-12-2018 19:00",
           "05-12-2018 21:00"
    ]
}

1 个答案:

答案 0 :(得分:0)

import java.util.List;

public class response {

  private int status;
  private String message;
  private List<String> disp_time;


  public int getStatus() {
     return status;
  }

  public void setStatus(int status) {
     this.status = status;
  }

  public String getMessage() {
     return message;
  }

  public void setMessage(String message) {
     this.message = message;
  }

  public List<String> getDisp_time() {
     return disp_time;
  }

  public void setDisp_time(List<String> disp_time) {
     this.disp_time = disp_time;
  }
}