Record Class NotificationSettingsModel.NotificationChannelModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.NotificationSettingsModel.NotificationChannelModel
- Enclosing class:
NotificationSettingsModel
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationChannelModel(String id, boolean enabled) Creates an instance of aNotificationChannelModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NotificationChannelModel
Creates an instance of aNotificationChannelModelrecord class.- Parameters:
id- the value for theidrecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-