class

OpenAI::Drag

Inherits JSON::Serializable < Reference < Object

A drag action.

Constructors

new(type_value : DragType = DragType::Drag, path : Array(DragPoint) = [] of DragPoint)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

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 } ] '''

Source
path=(path : Array(DragPoint))

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 } ] '''

Source
type_value

Specifies the event type. For a drag action, this property is always set to drag.

Source
type_value=(type_value : DragType)

Specifies the event type. For a drag action, this property is always set to drag.

Source