package com.gingersoft.gsa.other_order_mode.data.model.bean

class OrderList {

    private var success: Boolean = false
    private var sysTime: Long = 0
    private var data: DataBeanX? = null

    class DataBeanX {


        var count: Int = 0
        var page: PageBean? = null
        var data: List<DataBean>? = null

        class PageBean {
            /**
             * pageIndex : 1
             * pageSize : 10
             * pageCount : 0
             * totalCount : 8
             */

            var pageIndex: Int = 0
            var pageSize: Int = 0
            var pageCount: Int = 0
            var totalCount: Int = 0
        }

        class DataBean {
            /**
             * STATUS : 0
             * MEMBER_NAME : 觉得很多很多
             * ADDRESS_DETAIL : 香港荔枝角青山道479號麗昌工廠大廈2樓201L室Innovation Design Consultant Ltd.1111
             * PAY_AMOUNT : 89.0
             * PHONE : 15899876018
             * orderPayType : 1
             * ORDER_NO : 26200411316057124
             * Id : 48883
             * CREATE_TIME : Mar 27, 2020 12:07:49 PM
             * takeFoodCode : 0
             * order_type : 2
             * RECEIVER : 有 女士
             * MaxOrder : 200
             * selflNum : 35
             * totalAmount : 78.0
             * maxOrderSelf : 100
             * num : 111
             * dayOrderNum : 1
             * Open_Status : 1
             */
            var delivery_man_phone_num: String? = null
            var delivery_man_name: String? = null
            var curStat: String? = null
            var deliveryMode: String? = null
            var trkNo: String? = null
            var isDelete: Int = 0
            var STATUS: Int = 0//0,1為待確認，2為製作中，3待取餐或送貨中
            var MEMBER_NAME: String? = null
            var ADDRESS_DETAIL: String? = null
            var PAY_AMOUNT: Double = 0.toDouble()
            var PHONE: String? = null
            var orderPayType: Int = 0
            var ORDER_NO: String? = null
            var Id: Int = 0
            var CREATE_TIME: String? = null
            var takeFoodCode: String? = null
            var order_type: Int = 0
            var RECEIVER: String? = null
            var MaxOrder: Int = 0
            var selflNum: Int = 0
            var totalAmount: Double = 0.toDouble()
            var maxOrderSelf: Int = 0
            var num: Int = 0
            var dayOrderNum: Int = 0
            var Open_Status: String? = null//1為營業中  2為休息中
            var orderType_2: OrderType? = null
            var orderType_7: OrderType? = null

            class OrderType {
                var typeTotalAmount: Double = 0.toDouble()
                var typeDayOrderNum: Int = 0
            }
        }
    }


    fun isSuccess(): Boolean {
        return success
    }

    fun setSuccess(success: Boolean) {
        this.success = success
    }

    fun getSysTime(): Long {
        return sysTime
    }

    fun setSysTime(sysTime: Long) {
        this.sysTime = sysTime
    }

    fun getData(): DataBeanX? {
        return data
    }

    fun setData(data: DataBeanX) {
        this.data = data
    }

}