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

能不能新增到rxjava2 呢 加一个retrofit的下载呢 #2

Open
JamieYee opened this issue Feb 6, 2017 · 5 comments
Open

能不能新增到rxjava2 呢 加一个retrofit的下载呢 #2

JamieYee opened this issue Feb 6, 2017 · 5 comments
Assignees

Comments

@JamieYee
Copy link

JamieYee commented Feb 6, 2017

No description provided.

@ysmintor
Copy link
Owner

ysmintor commented Feb 7, 2017

Rxjava2 可能需要一些时间学习新的内容,应该会加入的,并且Rxjava1Rxjava2可以共存。
另外你指的Retrofit的下载是指什么意思呢?

@ysmintor ysmintor self-assigned this Feb 7, 2017
@JamieYee
Copy link
Author

JamieYee commented Feb 7, 2017

retrofit的下载方式 ~ 我觉得 你这个demo可以多一点注释 让我这个新手能手多学习一点知识

@JamieYee
Copy link
Author

JamieYee commented Feb 7, 2017

retrofit 下载文件

@ysmintor
Copy link
Owner

ysmintor commented Feb 7, 2017

是希望这个Demo增加使用Retrofit2下载演示是吧?
因为按我的理解的话使用Retrofit2下载文件和其它是类似的,比如是server_address/foo.zip这样的可以在注解写这个地址,然后类型是Bytes类似的。针对如{message:xxx, content:downloadaddress }这种返回形式,这里取出downloadaddress后再下载就可以。
例如

@GET("/resource/example.zip")
Call<ResponseBody> downloadFileWithFixedUrl();

另外大文件用@streaming,下载功能应该是Retrofit2已经实现的功能。
相关具体内容可看这个文章
http://www.jianshu.com/p/92bb85fc07e8
还有一个使用Retrofit2下载的库https://github.com/lingochamp/FileDownloader

目前还有一些事情,另外学习Rxjava2还需求些时间,等我学习完了就添加这些。

@JamieYee
Copy link
Author

您改的时候希望能够多点注释

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

No branches or pull requests

2 participants