Package ai.reveng.model
Class User
java.lang.Object
ai.reveng.model.User
User
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets rolestatic enumGets or Sets tier -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic UserCreate an instance of User given an JSON stringGet createdAtgetEmail()Get emailGet profilegetRole()Get rolegetTier()Get tierGet userIdinthashCode()profile(UserProfile profile) role(User.RoleEnum role) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetProfile(UserProfile profile) voidsetRole(User.RoleEnum role) voidsetTier(User.TierEnum tier) voidtier(User.TierEnum tier) 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 found
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_PROFILE
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_TIER
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
email
-
getEmail
Get email- Returns:
-
setEmail
-
profile
-
getProfile
Get profile- Returns:
- profile
-
setProfile
-
role
-
getRole
Get role- Returns:
- role
-
setRole
-
tier
-
getTier
Get tier- Returns:
- tier
-
setTier
-
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 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
-