public class MaxReward
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_AMOUNT
This constant represents a amount that is used when no amount is given by the third-party network.
|
static java.lang.String |
DEFAULT_LABEL
This constant represents a label that is used when a label is not given by the third-party network.
|
| Modifier and Type | Method and Description |
|---|---|
static MaxReward |
create(int amount,
java.lang.String label)
Creates an instance of this class with the provided amount and label.
|
static MaxReward |
createDefault()
Creates an instance of this class with the default amount and label.
|
int |
getAmount()
Get rewarded amount.
|
java.lang.String |
getLabel()
Get rewarded label.
|
java.lang.String |
toString() |
public static final java.lang.String DEFAULT_LABEL
public static final int DEFAULT_AMOUNT
public final java.lang.String getLabel()
DEFAULT_LABEL if none specified.public final int getAmount()
DEFAULT_AMOUNT if none specified.public java.lang.String toString()
toString in class java.lang.Objectpublic static MaxReward createDefault()
public static MaxReward create(int amount, java.lang.String label)
amount - The amount of this reward. Must be greater than or equal to 0.label - The label or currency of this reward.