get and storing json array android

Solutions on MaxInterview for get and storing json array android by the best coders in the world

showing results for - "get and storing json array android"
Yusuf
26 Feb 2016
1public class MessageBaseModel {
2@SerializedName("status")
3boolean status;
4
5@SerializedName("message")
6ArrayList<MessageModel> messageModels = new ArrayList<>();
7
8public boolean isStatus() {
9    return status;
10}
11
12public void setStatus(boolean status) {
13    this.status = status;
14}
15
16public ArrayList<MessageModel> getMessageModels() {
17    return messageModels;
18}
19
20public void setMessageModels(ArrayList<MessageModel> messageModels) {
21    this.messageModels = messageModels;
22}
23}
24
Dara
21 Jan 2018
1public class MessageModel {
2@SerializedName("ID")
3int id;
4
5@SerializedName("TFrom")
6String tFrom;
7
8@SerializedName("TTo")
9String tTo;
10
11public int getId() {
12    return id;
13}
14
15public void setId(int id) {
16    this.id = id;
17}
18
19public String gettFrom() {
20    return tFrom;
21}
22
23public void settFrom(String tFrom) {
24    this.tFrom = tFrom;
25}
26
27public String gettTo() {
28    return tTo;
29}
30
31public void settTo(String tTo) {
32    this.tTo = tTo;
33}
34}
35