public List <string> GetProductIdentifiersByType(HMSIAPProductType type)
        {
            var returnList = new List <string>();

            for (int i = 0; i < _settings.Keys.Count(); i++)
            {
                if (_settings.Values.ElementAt(i) == type.ToString())
                {
                    returnList.Add(_settings.Keys.ElementAt(i));
                }
            }

            return(returnList);
        }
        public AddIAPProductValueResult AddProduct(string identifier, HMSIAPProductType type)
        {
            identifier = identifier.PreprocessValue();
            var canAdd = CanAdd(identifier);

            if (canAdd == AddIAPProductValueResult.OK)
            {
                _productList.Add(new HMSIAPProductEntry(identifier, type));
                _settings.Set(identifier, type.ToString());
                RequireRefresh();
            }

            return(canAdd);
        }