Share via


ComputerActionDrag Class

Definition

A drag action.

public class ComputerActionDrag : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ComputerAction, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ComputerActionDrag>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ComputerActionDrag>
type ComputerActionDrag = class
    inherit ComputerAction
    interface IUtf8JsonSerializable
    interface IJsonModel<ComputerActionDrag>
    interface IPersistableModel<ComputerActionDrag>
Public Class ComputerActionDrag
Inherits ComputerAction
Implements IJsonModel(Of ComputerActionDrag), IPersistableModel(Of ComputerActionDrag)
Inheritance
ComputerActionDrag
Implements

Constructors

Name Description
ComputerActionDrag()

Initializes a new instance of ComputerActionDrag for deserialization.

ComputerActionDrag(ComputerActionType, IDictionary<String,BinaryData>, IList<Coordinate>)

Initializes a new instance of ComputerActionDrag.

ComputerActionDrag(IEnumerable<Coordinate>)

Initializes a new instance of ComputerActionDrag.

Properties

Name Description
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

Gets or sets the type.

(Inherited from ComputerAction)

Methods

Name Description
DeserializeComputerActionDrag(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ComputerAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ComputerAction)
IJsonModel<ComputerAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ComputerAction)
IJsonModel<ComputerActionDrag>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ComputerActionDrag>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputerAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ComputerAction)
IPersistableModel<ComputerAction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ComputerAction)
IPersistableModel<ComputerAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ComputerAction)
IPersistableModel<ComputerActionDrag>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputerActionDrag>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ComputerActionDrag>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to