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_NAME
import org.json.JSONObject

class Currency(id: Int, name: String, val countryName: String) : BaseItem(id, name) {

    constructor(currencyJSONObject: JSONObject) : this(currencyJSONObject.getInt(ATTR_ID), currencyJSONObject.getString(ATTR_NAME), "")
}