Class Activity

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

@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 Activity extends Object
Activity
  • Field Details

  • Constructor Details

    • Activity

      public Activity()
  • Method Details

    • actUser

      public Activity actUser(@Nullable User actUser)
    • getActUser

      @Nullable public User getActUser()
      Get actUser
      Returns:
      actUser
    • setActUser

      public void setActUser(@Nullable User actUser)
    • actUserId

      public Activity actUserId(@Nullable Long actUserId)
    • getActUserId

      @Nullable public Long getActUserId()
      Get actUserId
      Returns:
      actUserId
    • setActUserId

      public void setActUserId(@Nullable Long actUserId)
    • comment

      public Activity comment(@Nullable Comment comment)
    • getComment

      @Nullable public Comment getComment()
      Get comment
      Returns:
      comment
    • setComment

      public void setComment(@Nullable Comment comment)
    • commentId

      public Activity commentId(@Nullable Long commentId)
    • getCommentId

      @Nullable public Long getCommentId()
      Get commentId
      Returns:
      commentId
    • setCommentId

      public void setCommentId(@Nullable Long commentId)
    • content

      public Activity content(@Nullable String content)
    • getContent

      @Nullable public String getContent()
      Get content
      Returns:
      content
    • setContent

      public void setContent(@Nullable String content)
    • created

      public Activity created(@Nullable OffsetDateTime created)
    • getCreated

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

      public void setCreated(@Nullable OffsetDateTime created)
    • id

      public Activity id(@Nullable Long id)
    • getId

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

      public void setId(@Nullable Long id)
    • isPrivate

      public Activity isPrivate(@Nullable Boolean isPrivate)
    • getIsPrivate

      @Nullable public Boolean getIsPrivate()
      Get isPrivate
      Returns:
      isPrivate
    • setIsPrivate

      public void setIsPrivate(@Nullable Boolean isPrivate)
    • opType

      public Activity opType(@Nullable Activity.OpTypeEnum opType)
    • getOpType

      @Nullable public Activity.OpTypeEnum getOpType()
      the type of action
      Returns:
      opType
    • setOpType

      public void setOpType(@Nullable Activity.OpTypeEnum opType)
    • refName

      public Activity refName(@Nullable String refName)
    • getRefName

      @Nullable public String getRefName()
      Get refName
      Returns:
      refName
    • setRefName

      public void setRefName(@Nullable String refName)
    • repo

      public Activity repo(@Nullable Repository repo)
    • getRepo

      @Nullable public Repository getRepo()
      Get repo
      Returns:
      repo
    • setRepo

      public void setRepo(@Nullable Repository repo)
    • repoId

      public Activity repoId(@Nullable Long repoId)
    • getRepoId

      @Nullable public Long getRepoId()
      Get repoId
      Returns:
      repoId
    • setRepoId

      public void setRepoId(@Nullable Long repoId)
    • userId

      public Activity userId(@Nullable Long userId)
    • getUserId

      @Nullable public Long getUserId()
      Get userId
      Returns:
      userId
    • setUserId

      public void setUserId(@Nullable Long userId)
    • 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 Activity
    • fromJson

      public static Activity fromJson(String jsonString) throws IOException
      Create an instance of Activity given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Activity
      Throws:
      IOException - if the JSON string is invalid with respect to Activity
    • toJson

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