Interface TimeEntryService


public interface TimeEntryService
  • Method Details

    • list

      @GET("time_entries") retrofit2.Call<PaginatedList> list(@QueryMap Map<String,Object> options)
    • get

      @GET("time_entries/{entryId}") retrofit2.Call<TimeEntry> get(@Path("entryId") long entryId)
    • 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

      @DELETE("time_entries/{entryId}") retrofit2.Call<Void> delete(@Path("entryId") long entryId)
    • restart

      @PATCH("time_entries/{entryId}/restart") retrofit2.Call<TimeEntry> restart(@Path("entryId") long entryId)
    • stop

      @PATCH("time_entries/{entryId}/stop") retrofit2.Call<TimeEntry> stop(@Path("entryId") long entryId)