package com.autotech.we1l.items

import com.autotech.we1l.my_classes.BaseItem
import com.autotech.we1l.tools.ATTR_ID
import com.autotech.we1l.tools.ATTR_IMAGE_URL
import com.autotech.we1l.tools.ATTR_NAME
import org.json.JSONObject

class MiniProduct(id: Int, name: String, val imageURL: String) : BaseItem(id, name) {

    constructor(productMiniJSON: JSONObject)
            : this(productMiniJSON.getInt(ATTR_ID), productMiniJSON.getString(ATTR_NAME), productMiniJSON.getString(ATTR_IMAGE_URL))
}