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

com.github.edgar615.util.event.Response Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
package com.github.edgar615.util.event;

import java.util.Map;

/**
 * 请求回应为请求消息的回应.
 *
 * @author Edgar  Date 2017/3/8
 */
@Deprecated
public interface Response extends EventAction {
  String TYPE = "response";

  /**
   *
   * @return 0 成功非0失败
   */
  int result();

  /**
   *
   * @return 对应的请求ID
   */
  String reply();

  /**
   *
   * @return 回应结果
   */
  Map content();

  static Response create(String resource, int result, String reply, Map content) {
    return new ResponseImpl(resource, result, reply, content);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy