Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsonCallBack<T> gson解析疑问 #1

Open
df13954 opened this issue Apr 3, 2018 · 0 comments
Open

JsonCallBack<T> gson解析疑问 #1

df13954 opened this issue Apr 3, 2018 · 0 comments

Comments

@df13954
Copy link

df13954 commented Apr 3, 2018

BaseRequest 中,

 Ok.getmHandler().post(new Runnable() {
                            @Override
                            public void run() {
                        try {
                            //BaseCallBack  callBack  主线程中回调success
                            callBack.success(response);
                        } catch (IOException e) {
                            callBack.fail(e);
                        }

JsonCallBack extends CallBack (CallBack extends BaseCallBack)

JsonCallBack ->success解析gson (主线程解析gson,这样会不会耗时呢)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant