Class TrackedTime

java.lang.Object
build.cursed.genapi.forgejo.model.TrackedTime

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class TrackedTime extends Object
TrackedTime worked time for an issue / pr
  • Field Details

  • Constructor Details

    • TrackedTime

      public TrackedTime()
  • Method Details

    • created

      public TrackedTime created(@Nullable OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable OffsetDateTime created)
    • id

      public TrackedTime id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • issue

      public TrackedTime issue(@Nullable Issue issue)
    • getIssue

      @Nullable public Issue getIssue()
      Get issue
      Returns:
      issue
    • setIssue

      public void setIssue(@Nullable Issue issue)
    • issueId

      public TrackedTime issueId(@Nullable Long issueId)
    • getIssueId

      @Nullable public Long getIssueId()
      deprecated (only for backwards compatibility)
      Returns:
      issueId
    • setIssueId

      public void setIssueId(@Nullable Long issueId)
    • time

      public TrackedTime time(@Nullable Long time)
    • getTime

      @Nullable public Long getTime()
      Time in seconds
      Returns:
      time
    • setTime

      public void setTime(@Nullable Long time)
    • userId

      public TrackedTime userId(@Nullable Long userId)
    • getUserId

      @Nullable public Long getUserId()
      deprecated (only for backwards compatibility)
      Returns:
      userId
    • setUserId

      public void setUserId(@Nullable Long userId)
    • userName

      public TrackedTime userName(@Nullable String userName)
    • getUserName

      @Nullable public String getUserName()
      Get userName
      Returns:
      userName
    • setUserName

      public void setUserName(@Nullable String userName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static TrackedTime fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of TrackedTime to an JSON string
      Returns:
      JSON string