Package ch.aaap.harvestclient.service
Interface TimeEntryService
public interface TimeEntryService
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<TimeEntry>create(TimeEntryCreationInfoDuration creationInfo) retrofit2.Call<TimeEntry>create(TimeEntryCreationInfoTimestamp creationInfo) retrofit2.Call<Void>delete(long entryId) retrofit2.Call<TimeEntry>get(long entryId) retrofit2.Call<PaginatedList>retrofit2.Call<TimeEntry>restart(long entryId) retrofit2.Call<TimeEntry>stop(long entryId) retrofit2.Call<TimeEntry>update(long entryId, TimeEntryUpdateInfo toChange)
-
Method Details
-
list
-
get
-
create
@POST("time_entries") retrofit2.Call<TimeEntry> create(@Body TimeEntryCreationInfoDuration creationInfo) -
create
@POST("time_entries") retrofit2.Call<TimeEntry> create(@Body TimeEntryCreationInfoTimestamp creationInfo) -
update
@PATCH("time_entries/{entryId}") retrofit2.Call<TimeEntry> update(@Path("entryId") long entryId, @Body TimeEntryUpdateInfo toChange) -
delete
-
restart
@PATCH("time_entries/{entryId}/restart") retrofit2.Call<TimeEntry> restart(@Path("entryId") long entryId) -
stop
-