package com.xgr.easypay.callback;

/**
******************************* Copyright (c)*********************************\
**
**                 (c) Copyright 2017, King, china
**                          All Rights Reserved
**                                
**                              By(King)
**                         
**------------------------------------------------------------------------------
*/
public interface IPayCallback {
    void success();
    void failed(int code, String message);
    void cancel();
}

package com.xgr.easypay.callback;

import android.support.annotation.Nullable;

/**
******************************* Copyright (c)*********************************\
**
**                 (c) Copyright 2017, King, china
**                          All Rights Reserved
**                                
**                              By(King)
**                         
**------------------------------------------------------------------------------
*/
public interface IPayCallback {
    void success();
    void failed(int code,@Nullable String message);
    void cancel();
}

FIX kotlin项目中有可能返回空msg问题