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: Int = 0//訂單已創建    1
            //                    * * Order Assigned To Delivery Man - 配送員已接單  2
//                    * * Delivery Man Reached Pickup Point Nearby - 配送員已到達店鋪附近   3
//                    * * Delivery Man Reached Pickup Point - 配送员已到店  4
//                    * * Delivery In Progress - 訂單正在配送中  5
//                    * * Delivery Man Reached Destination Nearby - 配送員已到達目的地附近 6
//                    * * Order Delivered - 訂單已完成   7
//                    * * Order Cancelled Before Collection - 訂單已取消 - 取餐前    8
//                    * * Order Cancelled After Collection - 訂單已取消 - 取餐后    9
//                    * * Order Assigned To Another Delivery Man - 已指派另一位配送員    10
            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 sendTime: String? = null
            var waimaiSendTime: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//0=休息中, 1=營業中,2=繁忙中不可接單,3繁忙可接單
            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
    }

}