本文整理汇总了Java中retrofit.http.PUT类的典型用法代码示例。如果您正苦于以下问题:Java PUT类的具体用法?Java PUT怎么用?Java PUT使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PUT类属于retrofit.http包,在下文中一共展示了PUT类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: editMilestone
import retrofit.http.PUT; //导入依赖的package包/类
@FormUrlEncoded
@PUT(API_VERSION + "/projects/{id}/milestones/{milestone_id}")
Call<Milestone> editMilestone(@Path("id") long projectId,
@Path("milestone_id") long milestoneId,
@Field("title") String title,
@Field("description") String description,
@Field("due_date") String dueDate);
示例2: updateUserLocationAndDeviceTokenWithReferral
import retrofit.http.PUT; //导入依赖的package包/类
@PUT(PDAPIConfig.PD_USERS_PATH + "/{id}")
void updateUserLocationAndDeviceTokenWithReferral(
@Body String emptyBody,
@Path("id") String id,
@Query("user[platform]") String platform,
@Query("user[device_token]") String deviceToken,
@Query("user[latitude]") String latitude,
@Query("user[longitude]") String longitude,
@Query("user[unique_identifier]") String uid,
@Query("user[referral][referrer_id]") String referrerId,
@Query("user[referral][type]") String type,
@Query("user[referral][referrer_app_name]") String referrerAppName,
@Query("user[referral][request_id]") String requestId,
@Query("user[third_party_user_token]") String thirdPartyToken,
Callback<PDUser> callback);
示例3: updateAppointments
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/appointments/{id}/")
void updateAppointments(@Path("id") long appointmentID,
@Part("patient") String patientId,
@Part("owner") String owner,
@Part("notes") String notes,
@Part("appointment_date") String date,
@Part("title") String appointmentType,
@Part("end_time") String endTime,
@Part("start_time") String startTime,
Callback<Appointment> serverResponseCallback);
示例4: updateAdverseEventType
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/adverseEventType/{id}/")
void updateAdverseEventType(@Path("id") long adverseEventTypeID,
@Part("name") String patientID,
@Part("description") String admissionDate,
@Part("emergency_contacts") String dischargeDate,
Callback<AdverseEvent> serverResponseCallback);
示例5: updateStory
import retrofit.http.PUT; //导入依赖的package包/类
@PUT("/stories/{id}")
Observable<Story> updateStory(@Path("id") String id,
@Body UpdateStoryRequestData data);
示例6: updateEnrollments
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/enrollments/{id}/")
void updateEnrollments(@Path("id") long enrollmentID,
@Part("patient") String patient,
@Part("comment") String comment,
@Part("program") String program,
@Part("date_enrolled") String date,
Callback<Enrollment> serverResponseCallback);
示例7: updateEvent
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/events/{id}/")
void updateEvent(@Path("id") long eventID,
@Part("name") String name,
@Part("description") String description,
@Part("event_date") String date,
@Part("start_time") String startTime,
@Part("end_time") String endTime,
Callback<Events> serverResponseCallback);
示例8: setSubscription
import retrofit.http.PUT; //导入依赖的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);
示例9: updateSponsor
import retrofit.http.PUT; //导入依赖的package包/类
@PUT(MAIN_PATH+"/{idSponsor}")
Call<Status> updateSponsor(@Body Sponsor sponsor, @Path("idSponsor") int idSponsor);
示例10: updateAdverseEvent
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/adverseEvents/{id}/")
void updateAdverseEvent(@Path("id") long adverseEventID,
@Part("patient") String patientID,
@Part("adverse_event_type") String admissionDate,
@Part("event_date") String dischargeDate,
@Part("notes") String notes,
Callback<AdverseEvent> serverResponseCallback);
示例11: updateCounselling
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/counselling/{id}/")
void updateCounselling(@Path("id") long sessionID,
@Part("patient") String patient,
@Part("counselling_session_type") String sessionType,
@Part("notes") String notes,
Callback<Counselling> serverResponseCallback);
示例12: setAccount
import retrofit.http.PUT; //导入依赖的package包/类
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/accounts/account/{accountName}/")
DaemonTask<Halconfig, Void> setAccount(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Path("accountName") String accountName,
@Query("validate") boolean validate,
@Body Account account);
示例13: setArtifactAccount
import retrofit.http.PUT; //导入依赖的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);
示例14: updateMedicalReport
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/medicalReport/{id}/")
void updateMedicalReport(@Path("id") long reportID,
@Part("title") String title,
@Part("report_type") String reportType,
@Part("patient") String patient,
@Part("notes") String notes,
Callback<MedicalRecord> serverResponseCallback);
示例15: updateAdmissions
import retrofit.http.PUT; //导入依赖的package包/类
@Multipart
@PUT("/admissions/{id}/")
void updateAdmissions(@Path("id") long admissionID,
@Part("patient") String patientID,
@Part("admission_date") String admissionDate,
@Part("discharge_date") String dischargeDate,
@Part("health_centre") String healthCentre,
@Part("notes") String notes,
Callback<Admission> serverResponseCallback);