package com.fxy.hk.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class InboundBean implements Parcelable {
    public String pallet_code = "";
    public String ctn_code = "";
    public String ctn_qty = "";

    public String getPalletCode() {
        return pallet_code;
    }


    public String getCtnCode() {
        return ctn_code;
    }

    public InboundBean setCtnCode() {
        return this;
    }

    @Override
    public String toString() {
        return "InboundBean{" +
                "pallet_code='" + pallet_code + '\'' +
                ", ctn_code='" + ctn_code + '\'' +
                ", ctn_qty='" + ctn_qty + '\'' +
                '}';
    }

    public String getCtnQty() {
        return ctn_qty;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.pallet_code);
        dest.writeString(this.ctn_code);
        dest.writeString(this.ctn_qty);
    }

    public void readFromParcel(Parcel source) {
        this.pallet_code = source.readString();
        this.ctn_code = source.readString();
        this.ctn_qty = source.readString();
    }

    public InboundBean() {
    }

    protected InboundBean(Parcel in) {
        this.pallet_code = in.readString();
        this.ctn_code = in.readString();
        this.ctn_qty = in.readString();
    }

    public static final Creator<InboundBean> CREATOR = new Creator<InboundBean>() {
        @Override
        public InboundBean createFromParcel(Parcel source) {
            return new InboundBean(source);
        }

        @Override
        public InboundBean[] newArray(int size) {
            return new InboundBean[size];
        }
    };
}
