Class BetaComputerAction.Drag
-
- All Implemented Interfaces:
public final class BetaComputerAction.DragA drag action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaComputerAction.Drag.BuilderA builder for Drag.
public final classBetaComputerAction.Drag.PathAn x/y coordinate pair, e.g.
{ x: 100, y: 200 }.
-
Method Summary
Modifier and Type Method Description final List<BetaComputerAction.Drag.Path>path()An array of coordinates representing the path of the drag action. final JsonValue_type()Specifies the event type. final Optional<List<String>>keys()The keys being held while dragging the mouse. final JsonField<List<BetaComputerAction.Drag.Path>>_path()Returns the raw JSON value of path. final JsonField<List<String>>_keys()Returns the raw JSON value of keys. final Map<String, JsonValue>_additionalProperties()final BetaComputerAction.Drag.BuildertoBuilder()final BetaComputerAction.Dragvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaComputerAction.Drag.Builderbuilder()Returns a mutable builder for constructing an instance of Drag. -
-
Method Detail
-
path
final List<BetaComputerAction.Drag.Path> path()
An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg
[ { x: 100, y: 200 }, { x: 200, y: 300 } ]
-
_type
final JsonValue _type()
Specifies the event type. For a drag action, this property is always set to
drag.Expected to always return the following:
JsonValue.from("drag")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_path
final JsonField<List<BetaComputerAction.Drag.Path>> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_keys
final JsonField<List<String>> _keys()
Returns the raw JSON value of keys.
Unlike keys, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaComputerAction.Drag.Builder toBuilder()
-
validate
final BetaComputerAction.Drag validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaComputerAction.Drag.Builder builder()
Returns a mutable builder for constructing an instance of Drag.
The following fields are required:
.path()
-
-
-
-