All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.Store Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
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