retrofit2.http.PartMap Java Examples

The following examples show how to use retrofit2.http.PartMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FourChanPostApi.java    From mimi-reader with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST("{boardName}/post")
Single<Response<ResponseBody>> post(@Path("boardName") String boardName, @PartMap Map<String, RequestBody> param);
 
Example #2
Source File: ForumService.java    From TLint with Apache License 2.0 4 votes vote down vote up
@POST("img/Imgup")
@Multipart
Observable<UploadData> upload(@Part MultipartBody.Part file,
                              @PartMap Map<String, RequestBody> params);
 
Example #3
Source File: MyRetrofitTest.java    From zone-sdk with MIT License 4 votes vote down vote up
@Multipart
@POST ("log")
Call<Data> sendFiles (@PartMap Map<String, RequestBody> params);
 
Example #4
Source File: MyRetrofitTest.java    From zone-sdk with MIT License 4 votes vote down vote up
@Multipart
@POST("log")
Call<ResponseBody> method(@PartMap List<Object> parts) ;
 
Example #5
Source File: GetAndPostService.java    From AndroidBase with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST("upload")
Observable<ResponseBody> uploadImage(@PartMap Map<String, RequestBody> params);
 
Example #6
Source File: HupuForumApi.java    From SprintNBA with Apache License 2.0 4 votes vote down vote up
@POST("img/Imgup")
@Multipart
void upload(@Part("file") MultipartBody.Part file, @PartMap Map<String, RequestBody> params);
 
Example #7
Source File: Service.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@POST("createUser") @Multipart Observable<BaseV3Response> createUserWithFile(
@Part MultipartBody.Part user_avatar, @PartMap() HashMapNotNull<String, RequestBody> args,
@Header(WebService.BYPASS_HEADER_KEY) boolean bypassCache);
 
Example #8
Source File: V7.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Multipart @POST("user/set") Observable<BaseV7Response> editUser(
@Part MultipartBody.Part user_avatar,
@PartMap HashMapNotNull<String, okhttp3.RequestBody> body);
 
Example #9
Source File: V7.java    From aptoide-client-v8 with GNU General Public License v3.0 4 votes vote down vote up
@Multipart @POST("store/set") Observable<BaseV7Response> editStore(
@Part MultipartBody.Part multipartBody,
@PartMap HashMapNotNull<String, okhttp3.RequestBody> body);
 
Example #10
Source File: ApiService.java    From LLApp with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST("api/user/modifyDevice")
Observable<BaseResponse> uploadImage(@PartMap Map<String, RequestBody> map, @Part MultipartBody.Part file);
 
Example #11
Source File: APIPostService.java    From smart-farmer-android with Apache License 2.0 4 votes vote down vote up
/**
 * 上传视频
 */
@Multipart
@POST("api")
Observable<HttpModel<JsonObject>> upload_video(@PartMap Map<String, RequestBody> partMap, @Part MultipartBody.Part file);
 
Example #12
Source File: APIPostService.java    From smart-farmer-android with Apache License 2.0 4 votes vote down vote up
/**
 * 上传图片
 */
@Multipart
@POST("api")
Observable<HttpModel<JsonObject>> upload_img(@PartMap Map<String, RequestBody> partMap, @Part MultipartBody.Part file);
 
Example #13
Source File: BaseApiService.java    From RetrofitClient with Apache License 2.0 4 votes vote down vote up
@POST("{url}")
Call<ResponseBody> uploadFiles(
        @Path("url") String url,
        @Path("headers") Map<String, String> headers,
        @Part("filename") String description,
        @PartMap() Map<String, RequestBody> maps);
 
Example #14
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Multipart
@POST(".")
Call<String> uploadMediaToAWS(@PartMap() Map<String, RequestBody> params, @Part() MultipartBody.Part file);
 
Example #15
Source File: CommonRequest.java    From RetrofitClient with MIT License 4 votes vote down vote up
@Multipart
@POST
Observable<ResponseBody> uploadFilesFullPath(
        @Url String url,
        @PartMap() Map<String, RequestBody> maps);
 
Example #16
Source File: CommonRequest.java    From RetrofitClient with MIT License 4 votes vote down vote up
@Multipart
@POST("{path}")
Observable<ResponseBody> uploadFiles(
        @Path(value = "path", encoded = true) String url,
        @PartMap Map<String, RequestBody> maps);
 
Example #17
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@POST(Constants.FanFou.DESTROY_FRIENDSHIP_URL)
@Multipart
Observable<HttpResponseData<UserRes>> destoryFriendship(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example #18
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@POST(Constants.FanFou.CREATE_FRIENDSHIP_URL)
@Multipart
Observable<HttpResponseData<UserRes>> createFriendship(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example #19
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@POST(Constants.FanFou.SEND_DIRECT_MESSAGE_URL)
@Multipart
Observable<HttpResponseData<DirectMessagesRes>> sendDirectMessage(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example #20
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@POST(Constants.FanFou.PHOTOS_UPLOAD_URL)
@Multipart
Observable<HttpResponseData<StatusRes>> uploadPhoto(@PartMap Map<String, RequestBody> bodyMap);
 
Example #21
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST(Constants.FanFou.UPDATE_STATUSES_URL)
Observable<HttpResponseData<StatusRes>> updateStatus(@PartMap Map<String, RequestBody> bodyMap);
 
Example #22
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@POST(Constants.FanFou.DESTROY_STATUSES_URL)
@Multipart
Observable<HttpResponseData<StatusRes>> destroyStatus(
        @PartMap Map<String, RequestBody> bodyMap);
 
Example #23
Source File: ApiService.java    From RxEasyHttp with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST()
Observable<ResponseBody> uploadFiles(@Url String url, @PartMap() Map<String, RequestBody> maps);
 
Example #24
Source File: BaseApiService.java    From JD-Test with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST
Flowable<ResponseBody> uploadFileWithPartMap(
        @Url() String url,
        @PartMap() Map<String, RequestBody> partMap,
        @Part("file") MultipartBody.Part file);
 
Example #25
Source File: UpLoadApi.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
@POST
public Observable<Response> upLoad(@Url String url, @PartMap Map<String, RequestBody> requestBodyMap);
 
Example #26
Source File: JerryApiService.java    From Android-MVP with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST("api/user/modifyDevice")
Observable<BaseResponse> uploadImage(@PartMap Map<String, RequestBody> map, @Part MultipartBody.Part file);