Class Action<Handler extends ActionHandler,Data extends ActionData>
- java.lang.Object
-
- com.zendesk.sdk.deeplinking.actions.Action<Handler,Data>
-
- Type Parameters:
Handler
- An interface that can handle this type of actionData
- A POJO implementing the interfaceActionData
- Direct Known Subclasses:
- ActionRefreshComments
public abstract class Action<Handler extends ActionHandler,Data extends ActionData> extends java.lang.Object
Base class for implementing an Action that can be registered with anActionHandler
atZendeskDeepLinking
-
-
Constructor Summary
Constructors Constructor and Description Action(ActionType actionType, Data actionData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract boolean
canHandleData(Data data)
Check if this action is able to handle the given data.abstract void
execute(Handler handler, Data data)
Execute the actionData
getActionData()
Get the specified ActionDataActionType
getActionType()
Get the action type
-
-
-
Constructor Detail
-
Action
public Action(ActionType actionType, Data actionData)
-
-
Method Detail
-
getActionType
public ActionType getActionType()
Get the action type- Returns:
- The action type
-
getActionData
public Data getActionData()
Get the specified ActionData- Returns:
- The specified ActionData
-
execute
public abstract void execute(Handler handler, Data data)
Execute the action- Parameters:
handler
- The given action handlerdata
- The given action data
-
canHandleData
public abstract boolean canHandleData(Data data)
Check if this action is able to handle the given data.- Parameters:
data
- The given action data- Returns:
- True if the action can handle the given data, false if not
-
-