package com.autotech.we1l.items

import com.autotech.we1l.my_classes.BaseItem
import com.autotech.we1l.tools.ATTR_ACCOUNTABLE_TYPE
import com.autotech.we1l.tools.ATTR_AWB_NUMBER
import com.autotech.we1l.tools.ATTR_ORDER_NUMBER
import com.autotech.we1l.tools.ATTR_STATUS
import org.json.JSONObject

class TrackOrder(val orderNumber: String, val awbNumber: String, val status: String, val accountableType: String) : BaseItem() {

    constructor(trackOrderJSON: JSONObject)
            : this(trackOrderJSON.getString(ATTR_ORDER_NUMBER), trackOrderJSON.getString(ATTR_AWB_NUMBER),
            trackOrderJSON.getString(ATTR_STATUS), trackOrderJSON.getString(ATTR_ACCOUNTABLE_TYPE))
}