public interface AttachmentService
| Modifier and Type | Method and Description |
|---|---|
retrofit.client.Response |
deleteAttachment(String resourceType,
String resourceId,
String filename) |
void |
deleteAttachment(String resourceType,
String resourceId,
String filename,
retrofit.Callback<retrofit.client.Response> callback) |
retrofit.client.Response |
downloadAttachment(String resourceType,
String resourceId,
String filename) |
void |
downloadAttachment(String resourceType,
String resourceId,
String filename,
retrofit.Callback<retrofit.client.Response> callback) |
List<Attachment> |
getAttachments(String resourceType,
String resourceId) |
void |
getAttachments(String resourceType,
String resourceId,
retrofit.Callback<List<Attachment>> callback) |
Attachment |
uploadAttachment(String resourceType,
String resourceId,
retrofit.mime.TypedFile attachment) |
void |
uploadAttachment(String resourceType,
String resourceId,
retrofit.mime.TypedFile attachment,
retrofit.Callback<Attachment> callback) |
@GET(value="/api/attachment/{resourceType}/{resourceId}")
List<Attachment> getAttachments(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId)
@GET(value="/api/attachment/{resourceType}/{resourceId}")
void getAttachments(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
retrofit.Callback<List<Attachment>> callback)
@Multipart
@POST(value="/api/attachment/{resourceType}/{resourceId}/upload")
Attachment uploadAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Part(value="attachment")
retrofit.mime.TypedFile attachment)
@Multipart
@POST(value="/api/attachment/{resourceType}/{resourceId}/upload")
void uploadAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Part(value="attachment")
retrofit.mime.TypedFile attachment,
retrofit.Callback<Attachment> callback)
@DELETE(value="/api/attachment/{resourceType}/{resourceId}/{filename}")
retrofit.client.Response deleteAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Path(value="filename")
String filename)
@DELETE(value="/api/attachment/{resourceType}/{resourceId}/{filename}")
void deleteAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Path(value="filename")
String filename,
retrofit.Callback<retrofit.client.Response> callback)
@GET(value="/api/attachment/{resourceType}/{resourceId}/{filename}")
retrofit.client.Response downloadAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Path(value="filename")
String filename)
@GET(value="/api/attachment/{resourceType}/{resourceId}/{filename}")
void downloadAttachment(@Path(value="resourceType")
String resourceType,
@Path(value="resourceId")
String resourceId,
@Path(value="filename")
String filename,
retrofit.Callback<retrofit.client.Response> callback)
Copyright © 2018. All rights reserved.