ShopItem

public abstract class ShopItem

Элемент списка в фрагменте магазина

Fields

basePrice

BigInteger basePrice

countKey

String countKey

iconName

String iconName

name

String name

storage

Storage storage

Constructors

ShopItem

ShopItem(JSONObject jsonData, Storage storage, int iterationIndex)

Methods

getCount

int getCount()

getCountKey

String getCountKey()

getPrice

BigInteger getPrice()

getViewData

public HashMap<String, Object> getViewData(Context context)

setJsonAttrs

void setJsonAttrs(JSONObject jsonAttrs)

setOnCountChangeListener

void setOnCountChangeListener(OnDBChangeListener listener)

tryToBuy

boolean tryToBuy(Context context, Storage storage)