当前位置: 首页>>代码示例>>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;未经允许,请勿转载。