package com.mindimps.base.model;


/**
 * bonday服务器返回的基础格式
 * T 泛型的用法 正在进行中
 * @author duxue
 */
public class BaseModel<T> {

    private boolean ack;        //与服务器是否交互
    private String label;        //
    private String version;    //服务器数据版本
    private String copyright;    //版权所有
    private long timestamp;    //时间戳
    private int code;            //状态码   200 表示请求成功
    private int totalItems;        //返回数据个数
    private String uri;
    private String message;    //附带信息

    private T data;             //返回的数据


    public boolean isAck() {
        return ack;
    }

    public void setAck(boolean ack) {
        this.ack = ack;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCopyright() {
        return copyright;
    }

    public void setCopyright(String copyright) {
        this.copyright = copyright;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(int totalItems) {
        this.totalItems = totalItems;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getMessage() {
        return message;
    }

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

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
