Package ai.reveng.model
Class Team
java.lang.Object
ai.reveng.model.Team
Team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets plan -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TeamCreate an instance of Team given an JSON stringOrganisation this team belongs to, if anygetPlan()Get planGet teamIdGet teamNameinthashCode()organisationId(Long organisationId) plan(Team.PlanEnum plan) voidsetOrganisationId(Long organisationId) voidsetPlan(Team.PlanEnum plan) voidvoidsetTeamName(String teamName) toJson()Convert an instance of Team 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_ORGANISATION_ID
- See Also:
-
SERIALIZED_NAME_PLAN
- See Also:
-
SERIALIZED_NAME_TEAM_ID
- See Also:
-
SERIALIZED_NAME_TEAM_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Team
public Team()
-
-
Method Details
-
organisationId
-
getOrganisationId
Organisation this team belongs to, if any- Returns:
- organisationId
-
setOrganisationId
-
plan
-
getPlan
Get plan- Returns:
- plan
-
setPlan
-
teamId
-
getTeamId
Get teamId- Returns:
- teamId
-
setTeamId
-
teamName
-
getTeamName
Get teamName- Returns:
- teamName
-
setTeamName
-
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 Team
-
fromJson
Create an instance of Team given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Team
- Throws:
IOException- if the JSON string is invalid with respect to Team
-
toJson
Convert an instance of Team to an JSON string- Returns:
- JSON string
-