public class TuneEventItem extends Object
Modifier and Type | Field and Description |
---|---|
String |
attribute_sub1 |
String |
attribute_sub2 |
String |
attribute_sub3 |
String |
attribute_sub4 |
String |
attribute_sub5 |
String |
itemname |
int |
quantity |
double |
revenue |
double |
unitPrice |
Constructor and Description |
---|
TuneEventItem(String itemname) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrStringByName(String name) |
JSONObject |
toJSON() |
TuneEventItem |
withAttribute1(String attribute) |
TuneEventItem |
withAttribute2(String attribute) |
TuneEventItem |
withAttribute3(String attribute) |
TuneEventItem |
withAttribute4(String attribute) |
TuneEventItem |
withAttribute5(String attribute) |
TuneEventItem |
withQuantity(int quantity) |
TuneEventItem |
withRevenue(double revenue) |
TuneEventItem |
withUnitPrice(double unitPrice) |
public String itemname
public int quantity
public double unitPrice
public double revenue
public String attribute_sub1
public String attribute_sub2
public String attribute_sub3
public String attribute_sub4
public String attribute_sub5
public TuneEventItem(String itemname)
public TuneEventItem withQuantity(int quantity)
public TuneEventItem withUnitPrice(double unitPrice)
public TuneEventItem withRevenue(double revenue)
public TuneEventItem withAttribute1(String attribute)
public TuneEventItem withAttribute2(String attribute)
public TuneEventItem withAttribute3(String attribute)
public TuneEventItem withAttribute4(String attribute)
public TuneEventItem withAttribute5(String attribute)
public JSONObject toJSON()