Package io.meeds.mcp.server.tool.model
Record Class ProfileFieldVisibilityModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.ProfileFieldVisibilityModel
public record ProfileFieldVisibilityModel(List<String> hiddenFields, List<ProfileFieldVisibilityModel.ToggleableField> toggleableFields)
extends Record
Visibility state of the current user's profile fields: which fields are
currently hidden and the full set of fields whose visibility can be toggled
(the valid
field_name values for set_profile_field_visibility).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProfileFieldVisibilityModel(List<String> hiddenFields, List<ProfileFieldVisibilityModel.ToggleableField> toggleableFields) Creates an instance of aProfileFieldVisibilityModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehiddenFieldsrecord component.Returns the value of thetoggleableFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfileFieldVisibilityModel
public ProfileFieldVisibilityModel(List<String> hiddenFields, List<ProfileFieldVisibilityModel.ToggleableField> toggleableFields) Creates an instance of aProfileFieldVisibilityModelrecord class.- Parameters:
hiddenFields- the value for thehiddenFieldsrecord componenttoggleableFields- the value for thetoggleableFieldsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
toggleableFields
Returns the value of thetoggleableFieldsrecord component.- Returns:
- the value of the
toggleableFieldsrecord component
-