當前位置: 首頁>>代碼示例>>Java>>正文


Java Body類代碼示例

本文整理匯總了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);
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:DaemonService.java

示例2: updateStory

import retrofit.http.Body; //導入依賴的package包/類
@PUT("/stories/{id}")
Observable<Story> updateStory(@Path("id") String id,
                              @Body UpdateStoryRequestData data);
 
開發者ID:jianliaoim,項目名稱:talk-android,代碼行數:4,代碼來源:TalkApi.java

示例3: MediaUploadByte

import retrofit.http.Body; //導入依賴的package包/類
@POST("/api/valuestwo")
void MediaUploadByte(@Body FileData fileData, Callback<String> response);
 
開發者ID:burakgumusfb,項目名稱:Android.Media.Uploader,代碼行數:3,代碼來源:IMedia.java

示例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;
 
開發者ID:archos-sa,項目名稱:aos-MediaLib,代碼行數:12,代碼來源:Users.java

示例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;
 
開發者ID:archos-sa,項目名稱:aos-MediaLib,代碼行數:12,代碼來源:Users.java

示例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);
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:DaemonService.java

示例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);
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:DaemonService.java

示例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);
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:DaemonService.java

示例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);
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:8,代碼來源:PopdeemAPI.java

示例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);
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:8,代碼來源:PopdeemAPI.java

示例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);
 
開發者ID:goodev,項目名稱:droidddle,代碼行數:8,代碼來源:DribbbleAuthService.java

示例12: register

import retrofit.http.Body; //導入依賴的package包/類
@PUT("/collectors/{collectorId}")
Response register(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
 
開發者ID:DevOpsStudio,項目名稱:Re-Collector,代碼行數:3,代碼來源:CollectorRegistrationService.java

示例13: legacyRegister

import retrofit.http.Body; //導入依賴的package包/類
@PUT("/system/collectors/{collectorId}")
Response legacyRegister(@Path("collectorId") String collectorId, @Body CollectorRegistrationRequest request);
 
開發者ID:DevOpsStudio,項目名稱:Re-Collector,代碼行數:3,代碼來源:CollectorRegistrationService.java

示例14: doLogin

import retrofit.http.Body; //導入依賴的package包/類
@POST("/get_usuario.php")
void doLogin(@Body JsonObject data, Callback<LoginResponse> response);
 
開發者ID:Mun0n,項目名稱:MADBike,代碼行數:3,代碼來源:Apis.java

示例15: generateNewPassword

import retrofit.http.Body; //導入依賴的package包/類
@POST("/generate_new_password.php")
void generateNewPassword(@Body JsonObject data, Callback<BaseResponse> response);
 
開發者ID:Mun0n,項目名稱:MADBike,代碼行數:3,代碼來源:Apis.java


注:本文中的retrofit.http.Body類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。