Record Class McpScreenshotResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpScreenshotResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbase64()Returns the value of thebase64record component.intReturns the value of thebyteLengthrecord 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 themediaTyperecord component.Returns the value of theoutputPathrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpScreenshotResult
public McpScreenshotResult(String mediaType, int byteLength, String base64, String outputPath, List<String> warnings) Creates an instance of aMcpScreenshotResultrecord class.- Parameters:
mediaType- the value for themediaTyperecord componentbyteLength- the value for thebyteLengthrecord componentbase64- the value for thebase64record componentoutputPath- the value for theoutputPathrecord componentwarnings- the value for thewarningsrecord 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. -
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
byteLength
public int byteLength()Returns the value of thebyteLengthrecord component.- Returns:
- the value of the
byteLengthrecord component
-
base64
Returns the value of thebase64record component.- Returns:
- the value of the
base64record component
-
outputPath
Returns the value of theoutputPathrecord component.- Returns:
- the value of the
outputPathrecord component
-
warnings
-