Package 

Class NECallback2

  • All Implemented Interfaces:
    com.netease.yunxin.kit.roomkit.api.NECallback

    
    public abstract class NECallback2<T extends Object>
     implements NECallback<T>
                        

    通用回调

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NECallback2()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit onResult(Integer code, String message, T data) 通用回调
      Unit onSuccess(T data) 成功回调
      Unit onError(Integer code, String message) 失败回调
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NECallback2

        NECallback2()
    • Method Detail

      • onResult

         final Unit onResult(Integer code, String message, T data)

        通用回调

        Parameters:
        code - 错误码,0为成功,其他为失败
        message - 描述信息
        data - 数据实体
      • onSuccess

         Unit onSuccess(T data)

        成功回调

        Parameters:
        data - 数据