public class VirtualMonetizationEventBuilder extends MonetizationEventBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
VirtualMonetizationEventBuilder(AnalyticsClient analyticsClient)
Construct a VirtualMonetizationEventBuilder with the specified
EventClient
|
| Modifier and Type | Method and Description |
|---|---|
static VirtualMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a VirtualMonetizationEventBuilder with the specified Event client
|
protected boolean |
isValid()
Determines if all builder methods on this builder have been called
|
VirtualMonetizationEventBuilder |
withCurrency(String currency)
Sets the currency of the item being purchased.
|
VirtualMonetizationEventBuilder |
withItemPrice(double itemPrice)
Sets the numerical price of the item being purchased
|
VirtualMonetizationEventBuilder |
withProductId(String productId)
Sets the product identifier field of the item being purchased.
|
VirtualMonetizationEventBuilder |
withQuantity(Double quantity)
Sets the quantity of the item being purchased.
|
build, getCurrency, getFormattedItemPrice, getItemPrice, getProductId, getQuantity, getStore, getTransactionId, setCurrency, setFormattedItemPrice, setItemPrice, setProductId, setQuantity, setStore, setTransactionIdprotected VirtualMonetizationEventBuilder(AnalyticsClient analyticsClient)
analyticsClient - The EventClient to use when building the eventpublic static VirtualMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient - The event client to use when creating monetization
eventspublic VirtualMonetizationEventBuilder withProductId(String productId)
productId - The product id representing the item being purchasedpublic VirtualMonetizationEventBuilder withItemPrice(double itemPrice)
itemPrice - The numerical price of the itempublic VirtualMonetizationEventBuilder withQuantity(Double quantity)
quantity - The number of items purchased in this transactionpublic VirtualMonetizationEventBuilder withCurrency(String currency)
currency - The name of the virtual currency used to purchase this
item (i.e. Coins or Gold)protected boolean isValid()
MonetizationEventBuilderisValid in class MonetizationEventBuilderCopyright © 2017. All rights reserved.