本文整理匯總了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);