Class Activity
java.lang.Object
build.cursed.genapi.forgejo.model.Activity
@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 Activity
extends Object
Activity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumthe type of action -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) booleanstatic ActivityCreate an instance of Activity given an JSON stringGet actUserGet actUserIdGet commentGet commentIdGet contentGet createdgetId()Get idGet isPrivatethe type of actionGet refNamegetRepo()Get repoGet repoIdGet userIdinthashCode()opType(Activity.OpTypeEnum opType) repo(Repository repo) voidsetActUser(User actUser) voidsetActUserId(Long actUserId) voidsetComment(Comment comment) voidsetCommentId(Long commentId) voidsetContent(String content) voidsetCreated(OffsetDateTime created) voidvoidsetIsPrivate(Boolean isPrivate) voidsetOpType(Activity.OpTypeEnum opType) voidsetRefName(String refName) voidsetRepo(Repository repo) voidvoidtoJson()Convert an instance of Activity 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_ACT_USER
- See Also:
-
SERIALIZED_NAME_ACT_USER_ID
- See Also:
-
SERIALIZED_NAME_COMMENT
- See Also:
-
SERIALIZED_NAME_COMMENT_ID
- See Also:
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IS_PRIVATE
- See Also:
-
SERIALIZED_NAME_OP_TYPE
- See Also:
-
SERIALIZED_NAME_REF_NAME
- See Also:
-
SERIALIZED_NAME_REPO
- See Also:
-
SERIALIZED_NAME_REPO_ID
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Activity
public Activity()
-
-
Method Details
-
actUser
-
getActUser
Get actUser- Returns:
- actUser
-
setActUser
-
actUserId
-
getActUserId
Get actUserId- Returns:
- actUserId
-
setActUserId
-
comment
-
getComment
Get comment- Returns:
- comment
-
setComment
-
commentId
-
getCommentId
Get commentId- Returns:
- commentId
-
setCommentId
-
content
-
getContent
Get content- Returns:
- content
-
setContent
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
id
-
getId
Get id- Returns:
- id
-
setId
-
isPrivate
-
getIsPrivate
Get isPrivate- Returns:
- isPrivate
-
setIsPrivate
-
opType
-
getOpType
the type of action- Returns:
- opType
-
setOpType
-
refName
-
getRefName
Get refName- Returns:
- refName
-
setRefName
-
repo
-
getRepo
Get repo- Returns:
- repo
-
setRepo
-
repoId
-
getRepoId
Get repoId- Returns:
- repoId
-
setRepoId
-
userId
-
getUserId
Get userId- Returns:
- userId
-
setUserId
-
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 Activity
-
fromJson
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
Convert an instance of Activity to an JSON string- Returns:
- JSON string
-