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.ObjectBase class for implementing an Action that can be registered with anActionHandleratZendeskDeepLinking
-
-
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 booleancanHandleData(Data data)Check if this action is able to handle the given data.abstract voidexecute(Handler handler, Data data)Execute the actionDatagetActionData()Get the specified ActionDataActionTypegetActionType()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
-
-