public abstract class MonetizationEventBuilder
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MonetizationEventBuilder(EventClient eventClient)
Creates a MonetizationEventBuilder with the specified EventClient
|
| Modifier and Type | Method and Description |
|---|---|
AnalyticsEvent |
build()
Builds a monetization event.
|
protected java.lang.String |
getCurrency()
Accessor for the currency
|
protected java.lang.String |
getFormattedItemPrice()
Accessor for the formatted item price
|
protected java.lang.Double |
getItemPrice()
Accessor for the item price
|
protected java.lang.String |
getProductId()
Accessor for the product identifier
|
protected java.lang.Double |
getQuantity()
Accessor for the quantity
|
protected java.lang.String |
getStore()
Accessor for the store
|
protected java.lang.String |
getTransactionId()
Accessor for the transaction identifier
|
protected abstract boolean |
isValid()
Determines if all builder methods on this builder have been called
|
protected void |
setCurrency(java.lang.String currency)
Sets the item price currency to use when building the monetization event
|
protected void |
setFormattedItemPrice(java.lang.String formattedItemPrice)
Sets the formatted item price (in its local currency) to use when building the monetization event
|
protected void |
setItemPrice(java.lang.Double itemPrice)
Sets the numerical item price to use when building the monetization event
|
protected void |
setProductId(java.lang.String productId)
Sets the product id to use when building the monetization event
|
protected void |
setQuantity(java.lang.Double quantity)
Sets the quantity that will be used to build the monetization event
|
protected void |
setStore(java.lang.String store)
Sets the name of the Store where this purchase was made.
|
protected void |
setTransactionId(java.lang.String transactionId)
Sets the transaction id to use when building the monetization event
|
protected MonetizationEventBuilder(EventClient eventClient)
eventClient - The EventClient to use when building eventspublic AnalyticsEvent build()
protected abstract boolean isValid()
protected java.lang.String getProductId()
protected void setProductId(java.lang.String productId)
productId - The product id of the item being purchasedprotected java.lang.Double getQuantity()
protected void setQuantity(java.lang.Double quantity)
quantity - The quantity of items purchasedprotected java.lang.Double getItemPrice()
protected void setItemPrice(java.lang.Double itemPrice)
itemPrice - the price of the item being purchasedprotected java.lang.String getFormattedItemPrice()
protected void setFormattedItemPrice(java.lang.String formattedItemPrice)
formattedItemPrice - the formatted item price in its local currencyprotected java.lang.String getCurrency()
protected void setCurrency(java.lang.String currency)
currency - the ISO currency code or virtual curreny name of the item priceprotected java.lang.String getStore()
protected void setStore(java.lang.String store)
store - The store of the purchaseprotected java.lang.String getTransactionId()
protected void setTransactionId(java.lang.String transactionId)
transactionId - the transaction id of the purchase