Share via


Coordinate Class

Definition

An x/y coordinate pair, e.g. { x: 100, y: 200 }.

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

Constructors

Name Description
Coordinate()

Initializes a new instance of Coordinate for deserialization.

Coordinate(Int32, Int32, IDictionary<String,BinaryData>)

Initializes a new instance of Coordinate.

Coordinate(Int32, Int32)

Initializes a new instance of Coordinate.

Properties

Name Description
X

The x-coordinate.

Y

The y-coordinate.

Methods

Name Description
DeserializeCoordinate(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<Coordinate>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<Coordinate>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Coordinate>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<Coordinate>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<Coordinate>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to