Class User
java.lang.Object
build.cursed.genapi.forgejo.model.User
@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 User
extends Object
User represents a user
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) description(String description) booleanfollowersCount(Long followersCount) followingCount(Long followingCount) static UserCreate an instance of User given an JSON stringIs user activeURL to the user's avatarGet createdthe user's descriptiongetEmail()Get emailuser countsGet followingCountthe user's full nameURL to the user's profile pagegetId()the user's idIs the user an administratorUser localeGet lastLoginthe user's locationgetLogin()the user's usernamethe user's authentication sign-in name.Is user login prohibitedthe user's pronounsIs user restrictedThe ID of the user's Authentication SourceGet starredReposCountUser visibility level option: public, limited, privatethe user's websiteinthashCode()lastLogin(OffsetDateTime lastLogin) prohibitLogin(Boolean prohibitLogin) restricted(Boolean restricted) voidvoidsetAvatarUrl(String avatarUrl) voidsetCreated(OffsetDateTime created) voidsetDescription(String description) voidvoidsetFollowersCount(Long followersCount) voidsetFollowingCount(Long followingCount) voidsetFullName(String fullName) voidsetHtmlUrl(String htmlUrl) voidvoidsetIsAdmin(Boolean isAdmin) voidsetLanguage(String language) voidsetLastLogin(OffsetDateTime lastLogin) voidsetLocation(String location) voidvoidsetLoginName(String loginName) voidsetProhibitLogin(Boolean prohibitLogin) voidsetPronouns(String pronouns) voidsetRestricted(Boolean restricted) voidsetSourceId(Long sourceId) voidsetStarredReposCount(Long starredReposCount) voidsetVisibility(String visibility) voidsetWebsite(String website) starredReposCount(Long starredReposCount) toJson()Convert an instance of User to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvisibility(String visibility)
-
Field Details
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
SERIALIZED_NAME_AVATAR_URL
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_FOLLOWERS_COUNT
- See Also:
-
SERIALIZED_NAME_FOLLOWING_COUNT
- See Also:
-
SERIALIZED_NAME_FULL_NAME
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IS_ADMIN
- See Also:
-
SERIALIZED_NAME_LANGUAGE
- See Also:
-
SERIALIZED_NAME_LAST_LOGIN
- See Also:
-
SERIALIZED_NAME_LOCATION
- See Also:
-
SERIALIZED_NAME_LOGIN
- See Also:
-
SERIALIZED_NAME_LOGIN_NAME
- See Also:
-
SERIALIZED_NAME_PROHIBIT_LOGIN
- See Also:
-
SERIALIZED_NAME_PRONOUNS
- See Also:
-
SERIALIZED_NAME_RESTRICTED
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_STARRED_REPOS_COUNT
- See Also:
-
SERIALIZED_NAME_VISIBILITY
- See Also:
-
SERIALIZED_NAME_WEBSITE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
active
-
getActive
Is user active- Returns:
- active
-
setActive
-
avatarUrl
-
getAvatarUrl
URL to the user's avatar- Returns:
- avatarUrl
-
setAvatarUrl
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
description
-
getDescription
the user's description- Returns:
- description
-
setDescription
-
email
-
getEmail
Get email- Returns:
-
setEmail
-
followersCount
-
getFollowersCount
user counts- Returns:
- followersCount
-
setFollowersCount
-
followingCount
-
getFollowingCount
Get followingCount- Returns:
- followingCount
-
setFollowingCount
-
fullName
-
getFullName
the user's full name- Returns:
- fullName
-
setFullName
-
htmlUrl
-
getHtmlUrl
URL to the user's profile page- Returns:
- htmlUrl
-
setHtmlUrl
-
id
-
getId
the user's id- Returns:
- id
-
setId
-
isAdmin
-
getIsAdmin
Is the user an administrator- Returns:
- isAdmin
-
setIsAdmin
-
language
-
getLanguage
User locale- Returns:
- language
-
setLanguage
-
lastLogin
-
getLastLogin
Get lastLogin- Returns:
- lastLogin
-
setLastLogin
-
location
-
getLocation
the user's location- Returns:
- location
-
setLocation
-
login
-
getLogin
the user's username- Returns:
- login
-
setLogin
-
loginName
-
getLoginName
the user's authentication sign-in name.- Returns:
- loginName
-
setLoginName
-
prohibitLogin
-
getProhibitLogin
Is user login prohibited- Returns:
- prohibitLogin
-
setProhibitLogin
-
pronouns
-
getPronouns
the user's pronouns- Returns:
- pronouns
-
setPronouns
-
restricted
-
getRestricted
Is user restricted- Returns:
- restricted
-
setRestricted
-
sourceId
-
getSourceId
The ID of the user's Authentication Source- Returns:
- sourceId
-
setSourceId
-
starredReposCount
-
getStarredReposCount
Get starredReposCount- Returns:
- starredReposCount
-
setStarredReposCount
-
visibility
-
getVisibility
User visibility level option: public, limited, private- Returns:
- visibility
-
setVisibility
-
website
-
getWebsite
the user's website- Returns:
- website
-
setWebsite
-
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 User
-
fromJson
Create an instance of User given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of User
- Throws:
IOException- if the JSON string is invalid with respect to User
-
toJson
Convert an instance of User to an JSON string- Returns:
- JSON string
-