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

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

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

import java.util.Optional;
import org.immutables.value.Value.Default;

/**
 * Base response for requests to the Slack API.
 */
public abstract class BaseSlackResponse {

  /**
   * Was the request processed correctly?
   */
  @Default
  public String getOk() {
    return "true";
  }

  /**
   * Error message from slack if request failed
   */
  public abstract Optional getError();

  /**
   * Warning message from slack if request failed
   */
  public abstract Optional getWarning();

  /**
   * If you are lacking permissions to perform action, the needed permission should be here.
   */
  public abstract Optional getNeeded();

  public abstract Optional getProvided();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy