Record Class WidgetCodeResult
java.lang.Object
java.lang.Record
io.meeds.ide.mcp.model.WidgetCodeResult
- Record Components:
applicationId- the window's storage id on the draftwidgetId- the widget the window renders, the draft's own copyhtml- the widget's HTMLcss- the widget's CSSjs- the widget's JavaScriptdraftCreated- whether this call created the user's draft, whose ids differ from the published layout's
-
Constructor Summary
ConstructorsConstructorDescriptionWidgetCodeResult(String applicationId, long widgetId, String html, String css, String js, boolean draftCreated) Creates an instance of aWidgetCodeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationIdrecord component.css()Returns the value of thecssrecord component.booleanReturns the value of thedraftCreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.html()Returns the value of thehtmlrecord component.js()Returns the value of thejsrecord component.final StringtoString()Returns a string representation of this record class.longwidgetId()Returns the value of thewidgetIdrecord component.
-
Constructor Details
-
WidgetCodeResult
public WidgetCodeResult(String applicationId, long widgetId, String html, String css, String js, boolean draftCreated) Creates an instance of aWidgetCodeResultrecord class.- Parameters:
applicationId- the value for theapplicationIdrecord componentwidgetId- the value for thewidgetIdrecord componenthtml- the value for thehtmlrecord componentcss- the value for thecssrecord componentjs- the value for thejsrecord componentdraftCreated- the value for thedraftCreatedrecord 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. -
applicationId
Returns the value of theapplicationIdrecord component.- Returns:
- the value of the
applicationIdrecord component
-
widgetId
-
html
-
css
-
js
-
draftCreated
public boolean draftCreated()Returns the value of thedraftCreatedrecord component.- Returns:
- the value of the
draftCreatedrecord component
-