public class TuneEvent extends Object
Constructor and Description |
---|
TuneEvent(int eventId)
Initialize TuneEvent with an event ID
|
TuneEvent(String eventName)
Initialize TuneEvent with an event name
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute1() |
String |
getAttribute2() |
String |
getAttribute3() |
String |
getAttribute4() |
String |
getAttribute5() |
String |
getContentId() |
String |
getContentType() |
String |
getCurrencyCode() |
Date |
getDate1() |
Date |
getDate2() |
int |
getEventId() |
List<TuneEventItem> |
getEventItems() |
String |
getEventName() |
int |
getLevel() |
int |
getQuantity() |
double |
getRating() |
String |
getReceiptData() |
String |
getReceiptSignature() |
String |
getRefId() |
double |
getRevenue() |
String |
getSearchString() |
TuneEvent |
withAdvertiserRefId(String refId)
Set an advertiser ref ID to associate with event
|
TuneEvent |
withAttribute1(String attribute1)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute2(String attribute2)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute3(String attribute3)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute4(String attribute4)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute5(String attribute5)
Set custom attribute to associate with event
|
TuneEvent |
withContentId(String contentId)
Set content id to associate with event
|
TuneEvent |
withContentType(String contentType)
Set content type to associate with event
|
TuneEvent |
withCurrencyCode(String currencyCode)
Set a currency code to associate with event
|
TuneEvent |
withDate1(Date date1)
Set first date/start date to associate with event
|
TuneEvent |
withDate2(Date date2)
Set second date/end date to associate with event
|
TuneEvent |
withEventItems(List<TuneEventItem> items)
Set event items to associate with event
|
TuneEvent |
withLevel(int level)
Set level to associate with event
|
TuneEvent |
withQuantity(int quantity)
Set quantity to associate with event
|
TuneEvent |
withRating(double rating)
Set rating to associate with event
|
TuneEvent |
withReceipt(String receiptData,
String receiptSignature)
Set Google Play receipt to associate with event for purchase validation
|
TuneEvent |
withRevenue(double revenue)
Set a revenue amount to associate with event
|
TuneEvent |
withSearchString(String searchString)
Set search string to associate with event
|
public TuneEvent(String eventName)
eventName
- Event name in TUNE systempublic TuneEvent(int eventId)
eventId
- Event ID in TUNE systempublic TuneEvent withRevenue(double revenue)
revenue
- Revenue associated with the eventpublic TuneEvent withCurrencyCode(String currencyCode)
currencyCode
- Currency codepublic TuneEvent withAdvertiserRefId(String refId)
refId
- Advertiser ref IDpublic TuneEvent withEventItems(List<TuneEventItem> items)
items
- List of event itemspublic TuneEvent withReceipt(String receiptData, String receiptSignature)
receiptData
- Google Play receipt datareceiptSignature
- Google Play receipt signaturepublic TuneEvent withContentType(String contentType)
contentType
- Content typepublic TuneEvent withContentId(String contentId)
contentId
- Content idpublic TuneEvent withLevel(int level)
level
- Level (progress in game)public TuneEvent withQuantity(int quantity)
quantity
- Quantitypublic TuneEvent withSearchString(String searchString)
searchString
- Search string usedpublic TuneEvent withRating(double rating)
rating
- Rating givenpublic TuneEvent withDate1(Date date1)
date1
- First date or start datepublic TuneEvent withDate2(Date date2)
date2
- Second date or end datepublic TuneEvent withAttribute1(String attribute1)
attribute1
- Custom attributepublic TuneEvent withAttribute2(String attribute2)
attribute2
- Custom attributepublic TuneEvent withAttribute3(String attribute3)
attribute3
- Custom attributepublic TuneEvent withAttribute4(String attribute4)
attribute4
- Custom attributepublic TuneEvent withAttribute5(String attribute5)
attribute5
- Custom attributepublic String getEventName()
public int getEventId()
public double getRevenue()
public String getCurrencyCode()
public String getRefId()
public List<TuneEventItem> getEventItems()
public String getReceiptData()
public String getReceiptSignature()
public String getContentType()
public String getContentId()
public int getLevel()
public int getQuantity()
public String getSearchString()
public double getRating()
public Date getDate1()
public Date getDate2()
public String getAttribute1()
public String getAttribute2()
public String getAttribute3()
public String getAttribute4()
public String getAttribute5()