本文整理汇总了Java中retrofit.http.Multipart类的典型用法代码示例。如果您正苦于以下问题:Java Multipart类的具体用法?Java Multipart怎么用?Java Multipart使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Multipart类属于retrofit.http包,在下文中一共展示了Multipart类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: publicTweet
import retrofit.http.Multipart; //导入依赖的package包/类
@Multipart
@POST("/action/api/tweet_pub")
Call<RespResult> publicTweet(
@Part("uid") RequestBody uid,
@Part("msg") RequestBody message,
@Part("img\"; filename=\"image.png\" ") RequestBody image,
@Part("amr") RequestBody voice);
示例2: updatePatient
import retrofit.http.Multipart; //导入依赖的package包/类
@Multipart
@PUT("/patients/{id}/")
void updatePatient(@Path("id") long patientID,
@Part("other_names") String firstName,
@Part("last_name") String lastName,
@Part("identifier") String identifier,
@Part("birth_date") String dob,
@Part("reference_health_centre ") String facility,
@Part("sex") String sex,
@Part("contact_number") String contact1,
@Part("second_contact_number") String contact2,
@Part("third_contact_number") String contact3,
@Part("treatment_start_date") String txStart,
@Part("location") String location,
@Part("interim_outcome") String outcome,
Callback<Users> callback);
示例3: uploadImage
import retrofit.http.Multipart; //导入依赖的package包/类
@Multipart
@Headers({"Content-Type: multipart/form-data",
"Accept: application/json",
"Accept-Encoding: gzip, deflate"})
@POST("/api/{userID}/violation/create")
VideoAnswer uploadImage(@Part("photo") TypedFile photo,
@EncodedPath("userID") String userID,
@Part("latitude") double latitude,
@Part("longitude") double longitude);
示例4: updateAdverseEventType
import retrofit.http.Multipart; //导入依赖的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: updateAppointments
import retrofit.http.Multipart; //导入依赖的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);
示例6: updateEnrollments
import retrofit.http.Multipart; //导入依赖的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.Multipart; //导入依赖的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: updateRegimen
import retrofit.http.Multipart; //导入依赖的package包/类
/***
* section contains all the methods with endpoints to update information on the server
*/
@Multipart
@PUT("/regimen/{id}/")
void updateRegimen(@Path("id") long regimenId,
@Part("patient") String patientId,
@Part("notes") String notes,
@Part("drugs") String[] drugs,
@Part("date_started") String startDate,
@Part("date_ended") String endDate,
Callback<Regimen> serverResponseCallback);
示例9: updateNotification
import retrofit.http.Multipart; //导入依赖的package包/类
@Multipart
@PUT("/notifications/{id}/")
void updateNotification(@Path("id") long notificationID,
@Part("recipient") String recipientID,
@Part("verb") String verb,
@Part("unread") String unread,
@Part("actor_object_id") String actor,
Callback<Notifications> serverResponseCallback);
示例10: updateOutcome
import retrofit.http.Multipart; //导入依赖的package包/类
@Multipart
@PUT("/outcome/{id}/")
void updateOutcome(@Path("id") long outcomeID,
@Part("patient") String patientID,
@Part("outcome_type") String outcomeType,
@Part("outcome_date") String outcomeDate,
@Part("notes") String notes,
Callback<Outcome> serverResponseCallback);
示例11: updateAdverseEvent
import retrofit.http.Multipart; //导入依赖的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);
示例12: updateCounselling
import retrofit.http.Multipart; //导入依赖的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);
示例13: updateAdmissions
import retrofit.http.Multipart; //导入依赖的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);
示例14: updateMedicalReport
import retrofit.http.Multipart; //导入依赖的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: getAlbumData
import retrofit.http.Multipart; //导入依赖的package包/类
@Headers({
"Host: a.4493.com",
"User-Agent: 21",
"Content-Type: text/plain; charset=UTF-8"
})
@Multipart
@POST("rest/")
Observable<AlbumData> getAlbumData(
@Part(value = "appkey",encoding="8bit") String appkey, @Part(value = "channel_id",encoding="8bit") String channelid,
@Part(value = "crc",encoding="8bit") String crc
, @Part(value = "page",encoding="8bit") int page, @Part(value = "pagesize",encoding="8bit") int pagesize
, @Part(value = "ver",encoding="8bit") String ver, @Part(value = "api",encoding="8bit") String api,
@Part(value = "market",encoding="8bit") String market, @Part(value = "version",encoding="8bit") String version,@Part(value = "keyword",encoding="8bit") String key);