Record Class ActivityCollectionModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.ActivityCollectionModel
- Record Components:
activities- the activities foundusedLimit- the largest number of activities the call returnshasMore- whether more activities may match than the ones returnednextOffset- the offset that reads the next page, absent when no more remain or when the tool takes no offset
public record ActivityCollectionModel(List<ActivitySummaryModel> activities, int usedLimit, boolean hasMore, Integer nextOffset)
extends Record
A page of activities, saying whether more remain.
-
Constructor Summary
ConstructorsConstructorDescriptionActivityCollectionModel(List<ActivitySummaryModel> activities, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aActivityCollectionModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.Returns the value of thenextOffsetrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theusedLimitrecord component.
-
Constructor Details
-
ActivityCollectionModel
public ActivityCollectionModel(List<ActivitySummaryModel> activities, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aActivityCollectionModelrecord class.- Parameters:
activities- the value for theactivitiesrecord componentusedLimit- the value for theusedLimitrecord componenthasMore- the value for thehasMorerecord componentnextOffset- the value for thenextOffsetrecord 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. -
activities
Returns the value of theactivitiesrecord component.- Returns:
- the value of the
activitiesrecord component
-
usedLimit
-
hasMore
-
nextOffset
Returns the value of thenextOffsetrecord component.- Returns:
- the value of the
nextOffsetrecord component
-