Enum SwrveNotificationButton.ActionType
- java.lang.Object
-
- java.lang.Enum<SwrveNotificationButton.ActionType>
-
- com.swrve.sdk.notifications.model.SwrveNotificationButton.ActionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SwrveNotificationButton.ActionType>
- Enclosing class:
- SwrveNotificationButton
public static enum SwrveNotificationButton.ActionType extends java.lang.Enum<SwrveNotificationButton.ActionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISMISS
OPEN_APP
OPEN_CAMPAIGN
OPEN_URL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SwrveNotificationButton.ActionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SwrveNotificationButton.ActionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN_URL
@SerializedName("open_url") public static final SwrveNotificationButton.ActionType OPEN_URL
-
OPEN_APP
@SerializedName("open_app") public static final SwrveNotificationButton.ActionType OPEN_APP
-
OPEN_CAMPAIGN
@SerializedName("open_campaign") public static final SwrveNotificationButton.ActionType OPEN_CAMPAIGN
-
DISMISS
@SerializedName("dismiss") public static final SwrveNotificationButton.ActionType DISMISS
-
-
Method Detail
-
values
public static SwrveNotificationButton.ActionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SwrveNotificationButton.ActionType c : SwrveNotificationButton.ActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SwrveNotificationButton.ActionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-