All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vspr.ai.slack.api.Action Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
package com.vspr.ai.slack.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.util.Optional;

/**
 * Created by cobb on 7/17/17.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonSubTypes({
    @JsonSubTypes.Type(value = ImmutableButtonAction.class, name = "button"),
    @JsonSubTypes.Type(value = ImmutableSelectAction.class, name = "select")
})
public abstract class Action {

  public abstract String getName();

  public abstract Optional getText();

  public abstract String getType();

  public abstract Optional getValue();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy