public void ComparisonRequest(Dictionary <string, string> items, Action <string> _comparisonSuccessAction, Action <string> _comparisonFailedAction) { this.comparisonSuccessAction = _comparisonSuccessAction; this.comparisonFailedAction = _comparisonFailedAction; foreach (KeyValuePair <string, string> keyValuePair in items) { this.SetRequestProduct(keyValuePair.Key); this.SetRequestProductPrice(keyValuePair.Key + "," + keyValuePair.Value); } NpPurchaseAndroid.RequestProducts(NpPurchase.REQUEST_PRODUCTS_COMPARE); }
public void RequestProducts(string[] productId, Action <string> _requestProductSuccessAction, Action <string> _requestProductFailedAction) { this.requestProductSuccessAction = _requestProductSuccessAction; this.requestProductFailedAction = _requestProductFailedAction; int num = productId.Length; for (int i = 0; i < num; i++) { string requestProduct = productId[i]; this.SetRequestProduct(requestProduct); } NpPurchaseAndroid.RequestProducts(NpPurchase.REQUEST_PRODUCTS_NOMAL); }