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

com.vspr.ai.slack.api.EventResponse 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.JsonAnyGetter;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Map;
import java.util.Optional;
import org.immutables.value.Value;

/**
 * Correct response representation to {@link Event} requests from slack. You should return the
 * challenge supplied. Created by cobb on 7/27/17.
 */
@Value.Immutable
@JsonSerialize(as = ImmutableEventResponse.class)
@JsonDeserialize(as = ImmutableEventResponse.class)
@SlackApiImmutableStyle
public abstract class EventResponse {

  public abstract Optional getChallenge();

  @JsonAnyGetter
  public abstract Map getOther();

  public static ImmutableEventResponse.Builder builder() {
    return ImmutableEventResponse.builder();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy