public abstract class MonetizationEventBuilder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
MonetizationEventBuilder(AnalyticsClient analyticsClient)
Creates a MonetizationEventBuilder with the specified EventClient
|
| Modifier and Type | Method and Description |
|---|---|
AnalyticsEvent |
build()
Builds a monetization event.
|
protected String |
getCurrency()
Accessor for the currency
|
protected String |
getFormattedItemPrice()
Deprecated.
Will be removed. Please set Currency and Item Price
|
protected Double |
getItemPrice()
Accessor for the item price
|
protected String |
getProductId()
Accessor for the product identifier
|
protected Double |
getQuantity()
Accessor for the quantity
|
protected String |
getStore()
Accessor for the store
|
protected 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(String currency)
Sets the item price currency to use when building the monetization event
|
protected void |
setFormattedItemPrice(String formattedItemPrice)
Deprecated.
Will be removed. Please set Currency and Item Price
|
protected void |
setItemPrice(Double itemPrice)
Sets the numerical item price to use when building the monetization event
|
protected void |
setProductId(String productId)
Sets the product id to use when building the monetization event
|
protected void |
setQuantity(Double quantity)
Sets the quantity that will be used to build the monetization event
|
protected void |
setStore(String store)
Sets the name of the Store where this purchase was made.
|
protected void |
setTransactionId(String transactionId)
Sets the transaction id to use when building the monetization event
|
protected MonetizationEventBuilder(AnalyticsClient analyticsClient)
analyticsClient - The EventClient to use when building eventspublic AnalyticsEvent build()
protected abstract boolean isValid()
protected String getProductId()
protected void setProductId(String productId)
productId - The product id of the item being purchasedprotected Double getQuantity()
protected void setQuantity(Double quantity)
quantity - The quantity of items purchasedprotected Double getItemPrice()
protected void setItemPrice(Double itemPrice)
itemPrice - the price of the item being purchased@Deprecated protected String getFormattedItemPrice()
@Deprecated protected void setFormattedItemPrice(String formattedItemPrice)
formattedItemPrice - the formatted item price in its local currencyprotected String getCurrency()
protected void setCurrency(String currency)
currency - the ISO currency code or virtual curreny name of the item
priceprotected String getStore()
protected void setStore(String store)
store - The store of the purchaseprotected String getTransactionId()
protected void setTransactionId(String transactionId)
transactionId - the transaction id of the purchaseCopyright © 2017. All rights reserved.