Back to project page DroidBilling.
The source code is released under:
MIT License
If you think the Android project DroidBilling 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.techery.droid.billings.models; //ww w . j av a 2 s. c o m import com.techery.droid.billings.Constants; public class BillingFeatureSupportingResult { private final int billingSupportingResult; private final int subscriptionSupportingResult; public BillingFeatureSupportingResult(int billingSupportingResult, int subscriptionSupportingResult) { this.billingSupportingResult = billingSupportingResult; this.subscriptionSupportingResult = subscriptionSupportingResult; } public boolean isBillingSupportingResult() { return billingSupportingResult == Constants.BILLING_RESPONSE_RESULT.OK; } public boolean isSubscriptionSupported() { return subscriptionSupportingResult == Constants.BILLING_RESPONSE_RESULT.OK; } public int getBillingSupportingResult() { return billingSupportingResult; } public int getSubscriptionSupportingResult() { return subscriptionSupportingResult; } }