public interface EstimateMessagesService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
estId |
static String |
messageId |
static String |
path |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<EstimateMessage> |
create(long estimateId,
EstimateMessage creationInfo) |
retrofit2.Call<Void> |
delete(long estimateId,
long estimateMessageId) |
retrofit2.Call<EstimateMessage> |
get(long estimateId,
long estimateMessageId) |
retrofit2.Call<PaginatedList> |
list(long estimateId,
Instant updatedSince,
int page,
int perPage) |
static final String messageId
static final String estId
static final String basePath
static final String path
@GET(value="estimates/{estimateId}/messages")
retrofit2.Call<PaginatedList> list(@Path(value="estimateId")
long estimateId,
@Query(value="updated_since")
Instant updatedSince,
@Query(value="page")
int page,
@Query(value="per_page")
int perPage)
@GET(value="estimates/{estimateId}/messages/{id}")
retrofit2.Call<EstimateMessage> get(@Path(value="estimateId")
long estimateId,
@Path(value="id")
long estimateMessageId)
@POST(value="estimates/{estimateId}/messages")
retrofit2.Call<EstimateMessage> create(@Path(value="estimateId")
long estimateId,
@Body
EstimateMessage creationInfo)
@DELETE(value="estimates/{estimateId}/messages/{id}")
retrofit2.Call<Void> delete(@Path(value="estimateId")
long estimateId,
@Path(value="id")
long estimateMessageId)