Package io.meeds.mcp.server.tool.model
Record Class NotificationSettingsModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.NotificationSettingsModel
public record NotificationSettingsModel(List<NotificationSettingsModel.NotificationChannelModel> channels, List<NotificationSettingsModel.NotificationPluginModel> plugins, List<Long> mutedSpaceIds)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionNotificationSettingsModel(List<NotificationSettingsModel.NotificationChannelModel> channels, List<NotificationSettingsModel.NotificationPluginModel> plugins, List<Long> mutedSpaceIds) Creates an instance of aNotificationSettingsModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannels()Returns the value of thechannelsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themutedSpaceIdsrecord component.plugins()Returns the value of thepluginsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NotificationSettingsModel
public NotificationSettingsModel(List<NotificationSettingsModel.NotificationChannelModel> channels, List<NotificationSettingsModel.NotificationPluginModel> plugins, List<Long> mutedSpaceIds) Creates an instance of aNotificationSettingsModelrecord class.- Parameters:
channels- the value for thechannelsrecord componentplugins- the value for thepluginsrecord componentmutedSpaceIds- the value for themutedSpaceIdsrecord 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). -
channels
Returns the value of thechannelsrecord component.- Returns:
- the value of the
channelsrecord component
-
plugins
Returns the value of thepluginsrecord component.- Returns:
- the value of the
pluginsrecord component
-
mutedSpaceIds
Returns the value of themutedSpaceIdsrecord component.- Returns:
- the value of the
mutedSpaceIdsrecord component
-