// AUTOGENERATED FILE - DO NOT MODIFY!
// This file was generated by Djinni from proj.djinni

package com.ezored.domain;

public final class Customer implements android.os.Parcelable {


    /*package*/ final long mId;

    /*package*/ final String mName;

    /*package*/ final String mToken;

    /*package*/ final com.ezored.enumerator.CustomerStatusEnum mStatus;

    public Customer(
            long id,
            String name,
            String token,
            com.ezored.enumerator.CustomerStatusEnum status) {
        this.mId = id;
        this.mName = name;
        this.mToken = token;
        this.mStatus = status;
    }

    public long getId() {
        return mId;
    }

    public String getName() {
        return mName;
    }

    public String getToken() {
        return mToken;
    }

    public com.ezored.enumerator.CustomerStatusEnum getStatus() {
        return mStatus;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "mId=" + mId +
                "," + "mName=" + mName +
                "," + "mToken=" + mToken +
                "," + "mStatus=" + mStatus +
        "}";
    }


    public static final android.os.Parcelable.Creator<Customer> CREATOR
        = new android.os.Parcelable.Creator<Customer>() {
        @Override
        public Customer createFromParcel(android.os.Parcel in) {
            return new Customer(in);
        }

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

    public Customer(android.os.Parcel in) {
        this.mId = in.readLong();
        this.mName = in.readString();
        this.mToken = in.readString();
        this.mStatus = com.ezored.enumerator.CustomerStatusEnum.values()[in.readInt()];
    }

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

    @Override
    public void writeToParcel(android.os.Parcel out, int flags) {
        out.writeLong(this.mId);
        out.writeString(this.mName);
        out.writeString(this.mToken);
        out.writeInt(this.mStatus.ordinal());
    }

}
