Record Class McpMobileActionResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileActionResult
public record McpMobileActionResult(String action, boolean recorded, McpCodeBlock codeBlock, List<String> warnings)
extends Record
Mobile action result returned by MCP mobile tools.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpMobileActionResult(String action, boolean recorded, McpCodeBlock codeBlock, List<String> warnings) Creates an immutable mobile action result. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thecodeBlockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrecorded()Returns the value of therecordedrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpMobileActionResult
public McpMobileActionResult(String action, boolean recorded, McpCodeBlock codeBlock, List<String> warnings) Creates an immutable mobile action result.
-
-
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. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
recorded
public boolean recorded()Returns the value of therecordedrecord component.- Returns:
- the value of the
recordedrecord component
-
codeBlock
Returns the value of thecodeBlockrecord component.- Returns:
- the value of the
codeBlockrecord component
-
warnings
-