com.genexus.Store Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxclassR Show documentation
Show all versions of gxclassR Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
package com.genexus;
import java.util.Vector;
public class Store
{
static public Vector getPurchasedProducts()
{
GxUnknownObjectCollection result = new GxUnknownObjectCollection();
result.fromJSonString(ModelContext.getModelContext().getHttpContext().getHeader("Purchased-Products"));
return result;
}
static public boolean isEnabled(String productId)
{
Vector products = getPurchasedProducts();
for(int i=0; i< products.size(); i++)
{
if(((String)products.get(i)).toLowerCase().equals(productId.toLowerCase()))
{
return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy