本文整理汇总了Java中retrofit.http.PATCH类的典型用法代码示例。如果您正苦于以下问题:Java PATCH类的具体用法?Java PATCH怎么用?Java PATCH使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PATCH类属于retrofit.http包,在下文中一共展示了PATCH类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addUserMetadata
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH(METADATA_BASE_PATH + V1)
@Multipart
Response addUserMetadata(
@Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
@Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
@Path(USER_UUID_VARIABLE) UUID userUuid,
@Part("metadata") List<Metadata<?>> metadata
) throws HodErrorException;
示例2: editUser
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("user/profiles/{token}")
Call<User> editUser(@Path("token") String token,@Body User user);
示例3: changePwd
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("password/change")
Call<User> changePwd(@Body PasswordChange passwordChange);
示例4: editQuantity
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("orders/{orderId}/line_items/{id}")
Call<Order> editQuantity(@Path("orderId") String orderId, @Path("id") int id, @Query("token") String token, @Body LineItemWrapper lineItemWrapper);
示例5: patchNotifications
import retrofit.http.PATCH; //导入依赖的package包/类
@Headers("Accept: application/json")
@PATCH("/notifications/viewed")
Observable<ResponseBody> patchNotifications();
示例6: patchResource
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("/v1/disk/resources/")
Resource patchResource(@Query("path") String path, @Query("fields") String fields,
@Body TypedOutput body)
throws IOException, ServerIOException;
示例7: updateCandidate
import retrofit.http.PATCH; //导入依赖的package包/类
@NotNull
@PATCH("/candidates/{id}")
Candidate updateCandidate(@NotNull @Path("id") final String id, @NotNull @Body final Candidate candidate);
示例8: updateUser
import retrofit.http.PATCH; //导入依赖的package包/类
@PATCH("/api/{version}/accounts/{id}")
Object updateUser(@Path("version") int version,
@Path("id") int id,
@Body Object userData);
示例9: patchPage
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Appends new content to an existing page
* specified by page id
*
* Note: This passes a blank Accept-Encoding header to
* work around a known issue with the PATCH on this OneNote API
*
* @param encoding
* @param version
* @param pageId
* @param body
* @param callback
*/
@PATCH("/{version}/me/notes/pages/{pageId}/content")
void patchPage(
@Header("Accept-Encoding") String encoding,
@Path("version") String version,
@Path("pageId") String pageId,
@Body TypedString body,
Callback<Envelope<Page>> callback
);
示例10: updateCustomer
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Updates a customer
* @see <a href="http://dev.desk.com/API/customers/#update">http://dev.desk.com/API/customers/#update</a>
*
* @param customerId the customer id
* @param updatedCustomer the updated customer
* @return a customer
*/
@PATCH(CUSTOMERS_URI + "/{id}")
Call<Customer> updateCustomer(@Path("id") int customerId, @Body Customer updatedCustomer);
示例11: updateMobileDeviceSetting
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Update a mobile device setting
* @see <a href="http://dev.desk.com/API/users/#mobile-devices-settings-update">http://dev.desk.com/API/users/#mobile-devices-settings-update</a>
*
* @param userId the user id
* @param deviceId the device id
* @param settingId the setting id
* @param update the setting update body
* @return a setting
*/
@PATCH(USERS_URI + "/{userId}/" + MOBILE_DEVICES_URI + "/{deviceId}/" + SETTINGS_URI + "/{settingId}")
Call<Setting> updateMobileDeviceSetting(@Path("userId") int userId, @Path("deviceId") int deviceId,
@Path("settingId") int settingId, @Body SettingUpdate update);
示例12: updateCaseLock
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Locks or unlocks a case
* @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a>
*
* @param caseId the id of the case
* @param caseLock the case lock
* @return a case
*/
@PATCH(CASES_URI + "/{id}")
Call<Case> updateCaseLock(@Path("id") int caseId, @Body CaseLock caseLock);
示例13: updateCase
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Updates a case
* @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a>
*
* @param caseId the id of the case
* @param updatedCase the updated case
* @return a case
*/
@PATCH(CASES_URI + "/{id}")
Call<Case> updateCase(@Path("id") int caseId, @Body Case updatedCase);
示例14: updateCaseMessage
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Updates a case message
* @see <a href="http://dev.desk.com/API/cases/#message-update">http://dev.desk.com/API/cases/#message-update</a>
*
* @param caseId the id of the case
* @param updatedMessage the updated message
* @return a message
*/
@PATCH(CASES_URI + "/{id}/message")
Call<Message> updateCaseMessage(@Path("id") int caseId, @Body Message updatedMessage);
示例15: updateCaseReply
import retrofit.http.PATCH; //导入依赖的package包/类
/**
* Updates a case reply
* @see <a href="http://dev.desk.com/API/cases/#replies-update">http://dev.desk.com/API/cases/#replies-update</a>
*
* @param caseId the id of the case
* @param replyId the id of the reply
* @param updatedReply the updated reply
* @return a message
*/
@PATCH(CASES_URI + "/{caseId}/" + REPLIES_URI + "/{replyId}")
Call<Message> updateCaseReply(@Path("caseId") int caseId, @Path("replyId") int replyId, @Body Message updatedReply);