Giải pháp chuyển đổi số trọn gói cho doanh nghiệp Việt

Xây dựng ApiResponseGetItemList - Tài liệu lập trình android

Tài liệu lập trình android

← Toàn bộ tài liệu


Bước 10: Xây dựng ApiResponseGetItemList

Bài 10/36 Xem dạng sách

Nơi tạo file java/com/vantinviet/adayroionline/ApiResponse

Tên file cần tạo: ApiResponseGetItemList

 

Nội dung file 

 

package com.vantinviet.adayroionline.ApiResponse;

import com.google.gson.annotations.SerializedName;
import com.vantinviet.adayroionline.viewobject.Item;

import java.util.List;

public class ApiResponseGetItemList {


@SerializedName("result")
public String result;

@SerializedName("code")
public String code;

@SerializedName("errorMessage")
public String errorMessage;

@SerializedName("list_order")
public List<Item> itemList;

public ApiResponseGetItemList(String result, String code, String errorMessage, List<Item> itemList) {
this.result = result;
this.code = code;
this.errorMessage = errorMessage;
this.itemList = itemList;
}


@Override
public String toString() {
return "ApiResponseGetItemList{" +
"result='" + result + '\'' +
", code='" + code + '\'' +
", errorMessage='" + errorMessage + '\'' +
", itemList=" + itemList +
'}';
}
}

Sơ đồ quan hệ các bảng

Table Name: {{table.name}}
Num Name Type
{{field_index+1}}
{{field.name}} {{field.type}}

Hỏi đáp

Gửi với tên {{comment_full_name}}

Chưa có câu hỏi nào cho bài này.

Zalo 0936.006.058 Hotline 0936.006.058