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

Xây dựng lớp ApiResponseGetItem.java - 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 11: Xây dựng lớp ApiResponseGetItem.java

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

Tên file ApiResponseGetItem.java

 

Nội dung file

package com.vantinviet.adayroionline.ApiResponse;

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


public class ApiResponseGetItem {


@SerializedName("result")
public String result;

@SerializedName("code")
public String code;

@SerializedName("errorMessage")
public String errorMessage;

@SerializedName("data")
public Item item;

public ApiResponseGetItem(String result, String code, String errorMessage, Item item) {
this.result = result;
this.code = code;
this.errorMessage = errorMessage;
this.item = item;
}


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

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