Package com.xero.models.project
Class TimeEntry
java.lang.Object
com.xero.models.project.TimeEntry
public class TimeEntry extends Object
TimeEntry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeEntry.StatusEnumStatus of the time entry. -
Constructor Summary
Constructors Constructor Description TimeEntry() -
Method Summary
Modifier and Type Method Description TimeEntrydateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)TimeEntrydateUtc(org.threeten.bp.OffsetDateTime dateUtc)TimeEntrydescription(String description)TimeEntryduration(Integer duration)booleanequals(Object o)org.threeten.bp.OffsetDateTimegetDateEnteredUtc()The date time that time entry is created.org.threeten.bp.OffsetDateTimegetDateUtc()The date time that time entry is logged on.StringgetDescription()A description of the time entry.IntegergetDuration()The duration of logged minutes.UUIDgetProjectId()Identifier of the project, that the task (which the time entry is logged against) belongs to.TimeEntry.StatusEnumgetStatus()Status of the time entry.UUIDgetTaskId()Identifier of the task that time entry is logged against.UUIDgetTimeEntryId()Identifier of the time entry.UUIDgetUserId()The xero user identifier of the person who logged time.inthashCode()TimeEntryprojectId(UUID projectId)voidsetDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc)voidsetDateUtc(org.threeten.bp.OffsetDateTime dateUtc)voidsetDescription(String description)voidsetDuration(Integer duration)voidsetProjectId(UUID projectId)voidsetStatus(TimeEntry.StatusEnum status)voidsetTaskId(UUID taskId)voidsetTimeEntryId(UUID timeEntryId)voidsetUserId(UUID userId)TimeEntrystatus(TimeEntry.StatusEnum status)TimeEntrytaskId(UUID taskId)TimeEntrytimeEntryId(UUID timeEntryId)StringtoString()TimeEntryuserId(UUID userId)
-
Constructor Details
-
TimeEntry
public TimeEntry()
-
-
Method Details
-
timeEntryId
-
getTimeEntryId
Identifier of the time entry.- Returns:
- timeEntryId
-
setTimeEntryId
-
userId
-
getUserId
The xero user identifier of the person who logged time.- Returns:
- userId
-
setUserId
-
projectId
-
getProjectId
Identifier of the project, that the task (which the time entry is logged against) belongs to.- Returns:
- projectId
-
setProjectId
-
taskId
-
getTaskId
Identifier of the task that time entry is logged against.- Returns:
- taskId
-
setTaskId
-
dateUtc
-
getDateUtc
public org.threeten.bp.OffsetDateTime getDateUtc()The date time that time entry is logged on. UTC Date Time in ISO-8601 format.- Returns:
- dateUtc
-
setDateUtc
public void setDateUtc(org.threeten.bp.OffsetDateTime dateUtc) -
dateEnteredUtc
-
getDateEnteredUtc
public org.threeten.bp.OffsetDateTime getDateEnteredUtc()The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time.- Returns:
- dateEnteredUtc
-
setDateEnteredUtc
public void setDateEnteredUtc(org.threeten.bp.OffsetDateTime dateEnteredUtc) -
duration
-
getDuration
The duration of logged minutes.- Returns:
- duration
-
setDuration
-
description
-
getDescription
A description of the time entry.- Returns:
- description
-
setDescription
-
status
-
getStatus
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.- Returns:
- status
-
setStatus
-
equals
-
hashCode
public int hashCode() -
toString
-