Back to project page antigravity.
The source code is released under:
GNU General Public License
If you think the Android project antigravity listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.floatboth.antigravity.net; /*from w w w. j a v a 2s . c om*/ import retrofit.mime.*; import com.octo.android.robospice.request.retrofit.RetrofitSpiceRequest; import com.floatboth.antigravity.data.*; public class UploadFileRequest extends RetrofitSpiceRequest<File, ADNClient> { private String accessToken; private TypedContent content; private TypedString type; private TypedString isPublic; public UploadFileRequest(String accessToken, TypedContent content, TypedString type, TypedString isPublic) { super(File.class, ADNClient.class); this.accessToken = accessToken; this.content = content; this.type = type; this.isPublic = isPublic; } @Override public File loadDataFromNetwork() { return getService().uploadFile(accessToken, content, type, isPublic).data; } }