Record Class McpMobileRecordingStatus
java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileRecordingStatus
- Record Components:
readiness- Ready/Risky/Blocked verdict rolled up from step warnings; nevernullsteps- per-step summaries (stable stepId, sequence, action, risk) an agent can target withcapture_step_delete/capture_step_reorder; empty when inactive
public record McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings, CaptureReadiness.State readiness, List<McpMobileStepSummary> steps)
extends Record
Status for MCP mobile action recording.
Shares the web CaptureStatus vocabulary so the mobile
recorder speaks the same language as the web Capture recorder (issue #3497): recorded units are
"steps" (surfaced via actionCount), and readiness reuses the frozen web
CaptureReadiness.State (Ready/Risky/Blocked) rather than forking a parallel enum.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings) Back-compatible constructor for callers that predate the shared readiness contract; defaults readiness toCaptureReadiness.State.READYandstepsto an empty list.McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings, CaptureReadiness.State readiness) Back-compatible constructor for callers that predate the step summaries (#3526); defaultsstepsto an empty list.McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings, CaptureReadiness.State readiness, List<McpMobileStepSummary> steps) Creates an immutable mobile recording status. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactionCountrecord component.booleanactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeSensitiveValuesrecord component.mode()Returns the value of themoderecord component.Returns the value of theoutputPathrecord component.Returns the value of thereadinessrecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpMobileRecordingStatus
public McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings, CaptureReadiness.State readiness, List<McpMobileStepSummary> steps) Creates an immutable mobile recording status. -
McpMobileRecordingStatus
public McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings, CaptureReadiness.State readiness) Back-compatible constructor for callers that predate the step summaries (#3526); defaultsstepsto an empty list. -
McpMobileRecordingStatus
public McpMobileRecordingStatus(boolean active, Path outputPath, String mode, int actionCount, boolean includeSensitiveValues, List<String> warnings) Back-compatible constructor for callers that predate the shared readiness contract; defaults readiness toCaptureReadiness.State.READYandstepsto an empty list.
-
-
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. -
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
outputPath
Returns the value of theoutputPathrecord component.- Returns:
- the value of the
outputPathrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
actionCount
public int actionCount()Returns the value of theactionCountrecord component.- Returns:
- the value of the
actionCountrecord component
-
includeSensitiveValues
public boolean includeSensitiveValues()Returns the value of theincludeSensitiveValuesrecord component.- Returns:
- the value of the
includeSensitiveValuesrecord component
-
warnings
-
readiness
-
steps
-