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

Tạo file ApiResponseGetCarList.java - Ví lập trình android quản lý car

Ví lập trình android quản lý car

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


Bước 8: Tạo file ApiResponseGetCarList.java

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

Tên file: ApiResponseGetCarList.java

Nơi lưu file: java/com/vantinviet/adayroionline/ApiResponse/ApiResponseGetCarList.java

Nội dung file:

package com.vantinviet.adayroionline.ApiResponse;

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

import java.util.List;

public class ApiResponseGetCarList {


@SerializedName("result")
public String result;

@SerializedName("code")
public String code;

@SerializedName("errorMessage")
public String errorMessage;

@SerializedName("data")
public List<Car> carList;

public ApiResponseGetCarList(String result, String code, String errorMessage, List<Car> carList) {
this.result = result;
this.code = code;
this.errorMessage = errorMessage;
this.carList = carList;
}


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

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