Class TrackedTime
java.lang.Object
build.cursed.genapi.forgejo.model.TrackedTime
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class TrackedTime
extends Object
TrackedTime worked time for an issue / pr
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) booleanstatic TrackedTimeCreate an instance of TrackedTime given an JSON stringGet createdgetId()Get idgetIssue()Get issuedeprecated (only for backwards compatibility)getTime()Time in secondsdeprecated (only for backwards compatibility)Get userNameinthashCode()voidsetCreated(OffsetDateTime created) voidvoidvoidsetIssueId(Long issueId) voidvoidvoidsetUserName(String userName) toJson()Convert an instance of TrackedTime to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_ISSUE
- See Also:
-
SERIALIZED_NAME_ISSUE_ID
- See Also:
-
SERIALIZED_NAME_TIME
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
SERIALIZED_NAME_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TrackedTime
public TrackedTime()
-
-
Method Details
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
id
-
getId
Get id- Returns:
- id
-
setId
-
issue
-
getIssue
Get issue- Returns:
- issue
-
setIssue
-
issueId
-
getIssueId
deprecated (only for backwards compatibility)- Returns:
- issueId
-
setIssueId
-
time
-
getTime
Time in seconds- Returns:
- time
-
setTime
-
userId
-
getUserId
deprecated (only for backwards compatibility)- Returns:
- userId
-
setUserId
-
userName
-
getUserName
Get userName- Returns:
- userName
-
setUserName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TrackedTime
-
fromJson
Create an instance of TrackedTime given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TrackedTime
- Throws:
IOException- if the JSON string is invalid with respect to TrackedTime
-
toJson
Convert an instance of TrackedTime to an JSON string- Returns:
- JSON string
-