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