@DELETE("/delete") Call<Void> delete(); @GET("/status/{code}")
private void parseMethodAnnotation(Annotation annotation) { if (annotation instanceof DELETE) { parseHttpMethodAndPath("DELETE", ((DELETE) annotation).value(), false); } else if (annotation instanceof GET) { parseHttpMethodAndPath("GET", ((GET) annotation).value(), false);
@DELETE("system/inputstates/{inputId}") Call<InputDeleted> stop(@Path("inputId") String inputId); }
private void parseMethodAnnotation(Annotation annotation) { if (annotation instanceof DELETE) { parseHttpMethodAndPath("DELETE", ((DELETE) annotation).value(), false); } else if (annotation instanceof GET) { parseHttpMethodAndPath("GET", ((GET) annotation).value(), false);
@DELETE("system/jobs/{jobId}") Call<SystemJobSummary> delete(@Path("jobId") String jobId);
/** * 删除当前用户的所有通知 * * @return 状态 */ @DELETE("notifications/all.json") Call<State> deleteAllNotification(); }
/** * 删除当前用户的某个通知 * * @param id 通知 id * @return 状态 */ @DELETE("notifications/{id}.json") Call<State> deleteNotification(@Path("id") int id);
/** * 删除一个话题 * * @param id 要删除的话题 id * @return 状态 */ @DELETE("topics/{id}.json") Call<State> deleteTopic(@Path("id") int id);
/** * 删除回帖 * * @param id id * @return 状态 */ @DELETE("project_replies/{id}.json") Call<State> deleteProjectReply(@Path("id") int id); }
/** * 删除 news 回帖 * * @param id id * @return 状态 */ @DELETE("news_replies/{id}.json") Call<State> deleteNewsReply(@Path("id") int id);
/** * 删除回帖 * * @param id id * @return 状态 */ @DELETE("replies/{id}.json") Call<State> deleteTopicReply(@Path("id") int id);
/** * 取消赞 * * @param obj_type ["topic", "reply", "news"] * @param obj_id id * @return 是否成功 */ @DELETE("likes.json") Call<State> unLike(@Field("obj_type") String obj_type, @Field("obj_id") Integer obj_id); }
/** * 删除 Device 信息,请注意在用户登出或删除应用的时候调用,以便能确保清理掉 * * @param platform 平台 ["ios", "android"] * @param token 令牌 token * @return 是否成功 */ @DELETE("devices.json") Call<State> deleteDevices(@Field("platform") String platform, @Field("token") String token);
/** * Method for Retrofit. * * @see LineMessagingClient#cancelDefaultRichMenu() */ @DELETE("/v2/bot/user/all/richmenu") Call<Void> cancelDefaultRichMenu();
/** * Delete notification Long Poll channel * To delete a notification Long Poll channel. This is required to change the channel from Long Poll to another type. You should not make a GET `/v2/notification/pull` call for 2 minutes after channel was deleted, because it can implicitly recreate the pull channel. You can also have some random responses with payload or 410 GONE with \"CHANNEL_DELETED\" as a payload or 200/204 until the old channel is purged. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/pull -H 'authorization: Bearer {api-key}' * @return Call<Void> */ @DELETE("v2/notification/pull") Call<Void> deleteLongPollChannel();
/** * Remove pre-subscriptions * Removes pre-subscriptions. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/subscriptions -H 'authorization: Bearer {api-key}' * @return Call<Void> */ @DELETE("v2/subscriptions") Call<Void> deletePreSubscriptions();
/** * Cancels the current ride of a user. * * @return the request {@link Call} */ @DELETE("/v1.2/requests/current") Call<Void> cancelCurrentRide();
/** * Delete websocket channel. * To delete a notification websocket channel bound to the API key. This is required to change the channel from websocket to another type. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/websocket -H 'authorization: Bearer {api-key}' * @return Call<Void> */ @DELETE("v2/notification/websocket") Call<Void> deleteWebsocket();
/** * Delete callback URL * Deletes the callback URL. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' * @return Call<Void> */ @DELETE("v2/notification/callback") Call<Void> deregisterWebhook();
/** * <b>OAuth Required</b> * * <p> Removes any active checkins, no need to provide a specific item. */ @DELETE("checkin") Call<Void> deleteActiveCheckin();