本文整理汇总了Java中retrofit.http.Body类的典型用法代码示例。如果您正苦于以下问题:Java Body类的具体用法?Java Body怎么用?Java Body使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Body类属于retrofit.http包,在下文中一共展示了Body类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setSubscription
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/subscriptions/subscription/{subscriptionName}/")
DaemonTask<Halconfig, Void> setSubscription(
@Path("deploymentName") String deploymentName,
@Path("pubsubName") String pubsubName,
@Path("subscriptionName") String subscriptionName,
@Query("validate") boolean validate,
@Body Subscription subscription);
示例2: updateStory
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/stories/{id}")
Observable<Story> updateStory(@Path("id") String id,
@Body UpdateStoryRequestData data);
示例3: MediaUploadByte
import retrofit.http.Body; //导入依赖的package包/类
@POST("/api/valuestwo")
void MediaUploadByte(@Body FileData fileData, Callback<String> response);
示例4: addListItems
import retrofit.http.Body; //导入依赖的package包/类
/**
* <b>OAuth Required</b>
*
* <p> Add one or more items to a custom list. Items can be movies, shows, seasons, episodes, or people.
*/
@POST("/users/{username}/lists/{id}/items")
SyncResponse addListItems(
@Path("username") String username,
@Path("id") String id,
@Body SyncItems items
) throws OAuthUnauthorizedException;
示例5: deleteListItems
import retrofit.http.Body; //导入依赖的package包/类
/**
* <b>OAuth Required</b>
*
* <p> Remove one or more items from a custom list.
*/
@POST("/users/{username}/lists/{id}/items/remove")
SyncResponse deleteListItems(
@Path("username") String username,
@Path("id") String id,
@Body SyncItems items
) throws OAuthUnauthorizedException;
示例6: deployDeployment
import retrofit.http.Body; //导入依赖的package包/类
@POST("/v1/config/deployments/{deploymentName}/deploy/")
DaemonTask<Halconfig, Object> deployDeployment(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Query("deployOptions") List<DeployOption> deployOptions,
@Query("serviceNames") List<String> serviceNames,
@Body String _ignore);
示例7: setBaseImage
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/bakery/defaults/baseImage/{baseImageId}/")
DaemonTask<Halconfig, Void> setBaseImage(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Path("baseImageId") String baseImageId,
@Query("validate") boolean validate,
@Body BaseImage baseImage);
示例8: setArtifactAccount
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/v1/config/deployments/{deploymentName}/artifactProviders/{providerName}/artifactAccounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setArtifactAccount(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Path("accountName") String accountName,
@Query("validate") boolean validate,
@Body ArtifactAccount account);
示例9: registerUserWithFacebook
import retrofit.http.Body; //导入依赖的package包/类
@POST(PDAPIConfig.PD_USERS_PATH)
void registerUserWithFacebook(
@Body String emptyBody,
@Query("user[facebook][access_token]") String facebookAccessToken,
@Query("user[facebook][id]") String facebookUserID,
@Query("user[unique_identifier]") String uid,
Callback<PDUser> callback);
示例10: createNonSocialUser
import retrofit.http.Body; //导入依赖的package包/类
@POST(PDAPIConfig.PD_INIT_NON_SOCIAL_USER)
void createNonSocialUser(
@Body String emptyBody,
@Query("unique_identifier") String uid,
@Query("device_token") String deviceToken,
@Query("platform") String platform,
Callback<PDBasicResponse> callback);
示例11: getAccessToken
import retrofit.http.Body; //导入依赖的package包/类
@POST("/oauth/token")
public void getAccessToken(@Query("client_id") String client_id,
@Query("client_secret") String client_secret, @Query("code") String code,
@Body String unused, // can remove when retrofit releases this
// fix: https://github
// .com/square/retrofit/commit/19ac1e2c4551448184ad66c4a0ec172e2741c2ee
Callback<AccessToken> callback);
示例12: register
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/collectors/{collectorId}")
Response register(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
示例13: legacyRegister
import retrofit.http.Body; //导入依赖的package包/类
@PUT("/system/collectors/{collectorId}")
Response legacyRegister(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
示例14: doLogin
import retrofit.http.Body; //导入依赖的package包/类
@POST("/get_usuario.php")
void doLogin(@Body JsonObject data, Callback<LoginResponse> response);
示例15: generateNewPassword
import retrofit.http.Body; //导入依赖的package包/类
@POST("/generate_new_password.php")
void generateNewPassword(@Body JsonObject data, Callback<BaseResponse> response);