mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
783 B
Java
39 lines
783 B
Java
package org.tasks.billing;
|
|
|
|
import com.amazon.device.iap.model.Product;
|
|
import com.amazon.device.iap.model.ProductType;
|
|
|
|
public class SkuDetails {
|
|
|
|
static final String SKU_PRO = "tasks_pro";
|
|
|
|
static final String TYPE_INAPP = ProductType.CONSUMABLE.name();
|
|
static final String TYPE_SUBS = ProductType.SUBSCRIPTION.name();
|
|
|
|
private final Product product;
|
|
|
|
public SkuDetails(Product product) {
|
|
this.product = product;
|
|
}
|
|
|
|
public String getSku() {
|
|
return product.getSku();
|
|
}
|
|
|
|
public String getTitle() {
|
|
return product.getTitle();
|
|
}
|
|
|
|
public String getPrice() {
|
|
return product.getPrice();
|
|
}
|
|
|
|
public String getDescription() {
|
|
return product.getDescription();
|
|
}
|
|
|
|
public String getSkuType() {
|
|
return product.getProductType().name();
|
|
}
|
|
}
|