类 MainApi

  • 所有已实现的接口:
    IMainApi

    public class MainApi
    extends java.lang.Object
    implements IMainApi
    从以下版本开始:
    2024/8/16 17:32
    • 构造器概要

      构造器 
      构造器 说明
      MainApi()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      <REQUEST,​RESPONSE>
      ActionResponse<RESPONSE>
      doApiCall​(Action<REQUEST,​RESPONSE> packet)
      进行请求操作
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • MainApi

        public MainApi()
    • 方法详细资料

      • doApiCall

        public <REQUEST,​RESPONSE> ActionResponse<RESPONSE> doApiCall​(Action<REQUEST,​RESPONSE> packet)
                                                                    throws java.lang.InterruptedException
        从接口复制的说明: IMainApi
        进行请求操作
        指定者:
        doApiCall 在接口中 IMainApi
        类型参数:
        REQUEST - 请求类型
        RESPONSE - 返回类型
        参数:
        packet - 请求包
        返回:
        请求返回包
        抛出:
        java.lang.InterruptedException - 请求过程中出现Ctrl+C时抛出