public void LogStartCheckout(decimal?totalPrice, string currency, int?itemCount, Dictionary <string, object> customAttributes) { AnswersEventInstanceJavaObject answersEventInstanceJavaObject = new AnswersEventInstanceJavaObject("StartCheckoutEvent", customAttributes); answersEventInstanceJavaObject.InvokeSafelyAsDecimal("putTotalPrice", totalPrice); answersEventInstanceJavaObject.PutCurrency(currency); answersEventInstanceJavaObject.InvokeSafelyAsInt("putItemCount", itemCount); answersSharedInstance.Log("logStartCheckout", answersEventInstanceJavaObject); }
public void LogAddToCart (decimal? itemPrice, string currency, string itemName, string itemType, string itemId, Dictionary<string, object> customAttributes) { var eventInstance = new AnswersEventInstanceJavaObject ("AddToCartEvent", customAttributes); eventInstance.InvokeSafelyAsDecimal ("putItemPrice", itemPrice); eventInstance.PutCurrency (currency); eventInstance.InvokeSafelyAsString ("putItemName", itemName); eventInstance.InvokeSafelyAsString ("putItemId", itemId); eventInstance.InvokeSafelyAsString ("putItemType", itemType); answersSharedInstance.Log ("logAddToCart", eventInstance); }
public void LogAddToCart(decimal?itemPrice, string currency, string itemName, string itemType, string itemId, Dictionary <string, object> customAttributes) { AnswersEventInstanceJavaObject answersEventInstanceJavaObject = new AnswersEventInstanceJavaObject("AddToCartEvent", customAttributes); answersEventInstanceJavaObject.InvokeSafelyAsDecimal("putItemPrice", itemPrice); answersEventInstanceJavaObject.PutCurrency(currency); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemName", itemName); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemId", itemId); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemType", itemType); answersSharedInstance.Log("logAddToCart", answersEventInstanceJavaObject); }
public void LogPurchase(decimal?price, string currency, bool?success, string itemName, string itemType, string itemId, Dictionary <string, object> customAttributes) { AnswersEventInstanceJavaObject answersEventInstanceJavaObject = new AnswersEventInstanceJavaObject("PurchaseEvent", customAttributes); answersEventInstanceJavaObject.InvokeSafelyAsDecimal("putItemPrice", price); answersEventInstanceJavaObject.PutCurrency(currency); answersEventInstanceJavaObject.PutSuccess(success); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemName", itemName); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemId", itemId); answersEventInstanceJavaObject.InvokeSafelyAsString("putItemType", itemType); answersSharedInstance.Log("logPurchase", answersEventInstanceJavaObject); }
public void LogStartCheckout (decimal? totalPrice, string currency, int? itemCount, Dictionary<string, object> customAttributes) { var eventInstance = new AnswersEventInstanceJavaObject ("StartCheckoutEvent", customAttributes); eventInstance.InvokeSafelyAsDecimal ("putTotalPrice", totalPrice); eventInstance.PutCurrency (currency); eventInstance.InvokeSafelyAsInt ("putItemCount", itemCount); answersSharedInstance.Log ("logStartCheckout", eventInstance); }
public void LogPurchase (decimal? price, string currency, bool? success, string itemName, string itemType, string itemId, Dictionary<string, object> customAttributes) { var eventInstance = new AnswersEventInstanceJavaObject ("PurchaseEvent", customAttributes); eventInstance.InvokeSafelyAsDecimal ("putItemPrice", price); eventInstance.PutCurrency (currency); eventInstance.PutSuccess (success); eventInstance.InvokeSafelyAsString ("putItemName", itemName); eventInstance.InvokeSafelyAsString ("putItemId", itemId); eventInstance.InvokeSafelyAsString ("putItemType", itemType); answersSharedInstance.Log ("logPurchase", eventInstance); }