retrofit.http.PartMap Java Examples

The following examples show how to use retrofit.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: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/meals")
void createMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #2
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/meals/{xid}/partialUpdate")
void updateMealEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @Path(UpPlatformSdkConstants.XID) String xid,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #3
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/generic_events")
void createCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #4
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/generic_events/{xid}/partialUpdate")
void updateCustomEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #5
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/workouts")
void createWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #6
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/workouts/{xid}/partialUpdate")
void updateWorkoutEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #7
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/sleeps")
void createSleepEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #8
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/body_events")
void createBodyEvent(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #9
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/goals")
void createOrUpdateUsersGoals(
    @Path(UpPlatformSdkConstants.API_VERSION) String version,
    @PartMap HashMap<String, Object> hashMap,
    Callback<Object> response
);
 
Example #10
Source File: RestApiInterface.java    From UPPlatform_Android_SDK with Apache License 2.0 5 votes vote down vote up
@Multipart
@POST("/nudge/api/{version}/users/@me/mood")
void createMoodEvent(
        @Path(UpPlatformSdkConstants.API_VERSION) String version,
        @PartMap HashMap<String, Object> hashMap,
        Callback<Object> response
);
 
Example #11
Source File: UploadAppToRepoRequest.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/upload.webservices.aptoide.com/webservices/2/uploadAppToRepo")
@Multipart
UploadAppToRepoJson postApk(@PartMap HashMap<String, Object> args);
 
Example #12
Source File: PagesService.java    From Android-REST-API-Explorer with MIT License 3 votes vote down vote up
/**
 * Creates a new page with a multi-part content body
 * in a section specified by section id
 *
 * @param version
 * @param sectionId
 * @param partMap
 * @param callback
 */
@Multipart
@POST("/{version}/me/notes/sections/{sectionId}/pages")
void postMultiPartPages(
        @Path("version") String version,
        @Path("sectionId") String sectionId,
        @PartMap OneNotePartsMap partMap,
        Callback<Envelope<Page>> callback
);