Android Open Source - Android-Lib-InAppBilling Purchasable






From Project

Back to project page Android-Lib-InAppBilling.

License

The source code is released under:

Apache License

If you think the Android project Android-Lib-InAppBilling listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package android.lib.billing;
/*from   w ww .  jav a2  s .c o  m*/
/**
 * Represents the details of a billable product.
 */
public final class Purchasable {
    private final String productId;
    private final String title;
    private final String description;
    private final String price;

    Purchasable(final String productId, final String title, final String description, final String price) {
        this.productId   = productId;
        this.title       = title;
        this.description = description;
        this.price       = price;
    }

    /**
     * Returns the product ID for the billable product.
     * @return The product ID for the billable product.
     */
    public String getProductId() {
        return this.productId;
    }

    /**
     * Returns the title of the billable product.
     * @return The title of the billable product.
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * Returns the description of the billable product.
     * @return The description of the billable product.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * Returns the formatted prices of the billable product, including its currency sign. The price does not include tax.
     * @return The formatted prices of the billable product, including its currency sign.
     */
    public String getPrice() {
        return this.price;
    }
}




Java Source Code List

android.lib.billing.BillingManager.java
android.lib.billing.Order.java
android.lib.billing.Purchasable.java