Back to project page meets-android.
The source code is released under:
MIT License
If you think the Android project meets-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.theagilemonkeys.meets.magento.models; //from w ww . j av a 2 s . co m import com.google.api.client.util.Key; import com.theagilemonkeys.meets.models.MeetsStock; import com.theagilemonkeys.meets.utils.soap.Serializable; /** * Android Meets SDK * Original work Copyright (c) 2014 [TheAgileMonkeys] * * @author ??lvaro Lpez Espinosa */ public class MageStockItem extends Serializable.Object implements MeetsStock.Item { @Key private String product_id; @Key private String sku; @Key private String qty; @Key private String is_in_stock; @Override public int getProductId() { return Integer.parseInt(product_id); } @Override public String getProductSku() { return sku; } @Override public boolean isInStock() { return "1".equals(is_in_stock); } @Override public double getQuantity() { return Double.parseDouble(qty); } }